Last answered:

11 Nov 2024

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

8 answers ( 2 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

Posted on:

11 Nov 2024

0
yes reaIIy heIpfuI

Submit an answer