Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.