The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I'm wanting to create a % comparison of two subtotaled catagories based on totals by month.
In Power BI I have created tabular layout.
Any assistance in how this can be computed?
Solved! Go to Solution.
@Anonymous,
You may try the measure below.
Measure = DIVIDE ( CALCULATE ( SUM ( Table1[amount] ), Table1[type] = "Gas" ), CALCULATE ( SUM ( Table1[amount] ), Table1[type] = "Diesel" ) )
Thanks for the idea.
If I'm creating a new measure, could you assist me with the DAX?
I have tabular data as:
Gas Diesel
Jan 456.23 532.11
Feb 987.65 285.33
Mar 658.21 296.83
These are in three columns
date
type
amount
I want to divide the gas subtotal by diesel subtotal by month.
THX
@Anonymous,
You may try the measure below.
Measure = DIVIDE ( CALCULATE ( SUM ( Table1[amount] ), Table1[type] = "Gas" ), CALCULATE ( SUM ( Table1[amount] ), Table1[type] = "Diesel" ) )
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
95 | |
80 | |
62 | |
56 |
User | Count |
---|---|
256 | |
120 | |
112 | |
83 | |
71 |