Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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" )
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |