Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, I am trying to create a measure to be able to display account as a % of Sales.
My dataset is an account export that is already mapped, and so Sales and Expenses aree all in the same table.
So far I have 3 measures.
Total Value = sum([Amount DrCr])
Total Revenue = =CALCULATE([Total Value],ALLSELECTED(),tbl_COA_Reference[Level4]="Revenue") , where Level 4 is part of the account mapping.
% Revenue = DIVIDE([Total Value],[Total Revenue],0)
It works fine when I am only showing 1 period, but when I extend with multiple periods in the pivot table columns, the %s displayed change to % of row instead of % of sales (see attached for correct single-period, and incorrect multi-period).
I assume the error is on the Total Revenue measure, but any help is appreciated
Solved! Go to Solution.
Hi:
You can obtain the share percent a few different ways. One thing though, your measure for Total Value would usually look like Total Value = SUM(TableName, [Column Name]) and that is not what is shown above. Seeing your data (Fact Table layout and Dimension for Accounts)could help answer correctly. That mentioned, A couple of ways you can try is:
Share of Value 1 =
DIVIDE([Total Value],
CALCULATE([Total Value], REMOVEFILTERS()))
or Share of Value 2 =
DIVIDE(SUMX(YOURTABLENAME, [Total Value]),
SUMX(ALLSELECTED(YOURTABLENAME), [Total Value]))
Hi @MapleFox36 ,
May I know whether your issue has been resolved? If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you still have problem, please provide some sample data contained in your tables and let us know their relationships so we can help you find the solution. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi:
You can obtain the share percent a few different ways. One thing though, your measure for Total Value would usually look like Total Value = SUM(TableName, [Column Name]) and that is not what is shown above. Seeing your data (Fact Table layout and Dimension for Accounts)could help answer correctly. That mentioned, A couple of ways you can try is:
Share of Value 1 =
DIVIDE([Total Value],
CALCULATE([Total Value], REMOVEFILTERS()))
or Share of Value 2 =
DIVIDE(SUMX(YOURTABLENAME, [Total Value]),
SUMX(ALLSELECTED(YOURTABLENAME), [Total Value]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |