Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a table featuring data similar to the sample data in screenshot below. I am wondering if it is possible to create a measure that will display the percentage of total dollars in each Category (A or B), i.e. for Bob the goal would be to see that 73.97% of his pay was in category A (2541/3435 * 100).
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Expected result measure: =
VAR _pay =
SUM ( Sales[Pay] )
VAR _totalpay =
CALCULATE ( SUM ( Sales[Pay] ), ALL ( Category[Category] ) )
RETURN
DIVIDE ( _pay, _totalpay )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
Expected result measure: =
VAR _pay =
SUM ( Sales[Pay] )
VAR _totalpay =
CALCULATE ( SUM ( Sales[Pay] ), ALL ( Category[Category] ) )
RETURN
DIVIDE ( _pay, _totalpay )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thank you! I was able to get this to work on my file with the real business information on it. However, I was able to make it to work without splitting up the table into many separate ones like you show in your relationship diagram. Is there any reason you chose to do that?
Hi,
Thank you for your message. I tried to create a "Star Schema Data model" in Power BI.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
12 | |
10 | |
8 | |
7 |
User | Count |
---|---|
26 | |
14 | |
12 | |
11 | |
10 |