The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi guys,
Been wrecking my brain and the google for this, but can't seem to find a viable solution to this - so i've come to the source and hope you guys can help me find the solution to this seemingly simple problem.
I have 1 fact tabels and 2 dimension tables as shown on the embedded:
So what i'm trying to do here is to show the percentage of the costs on each region to the each region's revenue like the above table. But the formula just refuses to calculate it on the Cost 2, Cost 3 ... levels, but calculated fine on the Total level. The measures I used are as below:
Solved! Go to Solution.
Hi @Anonymous ,
Please modify your % of Revenue formula like below.
% of Revenue = DIVIDE ( [Cost for each region], CALCULATE ( SUM ( 'Fact Table'[Total Reforecast] ), FILTER ( ALL ( 'COA' ), COA[Account Type] = "Revenue" ) ) )
Then you could get your desired output.
Best Regards,
Cherry
Hi @Anonymous ,
Based on information, if you want to calculate the the percentage of the costs on each region to the each region's revenue. I'm afraid that your formula should be right. The output based on your logic should like below.
However, in your matrix, you put the Account Category as Row field, I'm afraid that is it is the correct display.
As you could see, the highlight in red are null values, so the % percentage is blank but the total row is correct.
So what is your desired output? Please share your desired output so that I could understand your logic better and help further on it.
Best Regards,
Cherry
Hi Cherry / @v-piga-msft
Thanks for your reply, the desired output for me is a % of Revenue by Cost item line as per below.
again, thanks so much!
Hi @Anonymous ,
Please modify your % of Revenue formula like below.
% of Revenue = DIVIDE ( [Cost for each region], CALCULATE ( SUM ( 'Fact Table'[Total Reforecast] ), FILTER ( ALL ( 'COA' ), COA[Account Type] = "Revenue" ) ) )
Then you could get your desired output.
Best Regards,
Cherry
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
109 | |
67 | |
46 | |
41 |
User | Count |
---|---|
186 | |
85 | |
76 | |
74 | |
56 |