Last answered:

03 Nov 2021

Posted on:

03 Nov 2021

1

Resolved: Power BI Final Project part 13

Dear Mr. With Dimitar Shutev,
All entries of %Sales show 100.00.
Please tell why it happens like that.
Amy Soe

image

7 answers ( 1 marked as helpful)
Instructor
Posted on:

03 Nov 2021

1

can you please provide your DAX code?

Posted on:

03 Nov 2021

0

DAX code for %Sales is:
%Sales = DIVIDE([TotalSalesAmount],[TotalSalesAmountAll])*100image

Posted on:

03 Nov 2021

1

DAX code for %Sales is:
%Sales = DIVIDE([TotalSalesAmount],[TotalSalesAmountAll])*100image

Instructor
Posted on:

03 Nov 2021

0

ok, and what is inside TotalSalesAmountAll? Can you please share that as well?

Posted on:

03 Nov 2021

1

TotalSalesAmountAll = CALCULATE([TotalSalesAmount],ALL(dim_Currency))
image

Instructor
Posted on:

03 Nov 2021

2

Please try replacing dim_Currency with country inside the ALL function

Posted on:

03 Nov 2021

6

OK. I try replacing with country inside ALL function like ...

TotalSalesAmountAll = CALCULATE([TotalSalesAmount],ALL(dim_SalesTeritory))

Now, it works fine.
Please see my attached screenshot.

Thank you so much.
The whole course explanation are really helpful for us.image

Submit an answer