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 have a measure setup to calculate the Margin % that i've charted out, the data does not start until 6/2021.
How do I get the chart to start at 6/1 (Q2) vs. Q1 so I don't have Q1 showing up with invalid datat?
The measure i'm using and the Chart
Solved! Go to Solution.
Try rewriting the measure like this:
Margin % =
DIVIDE (
SUM ( 'TABLE'[ExtendedSell] ) - SUM ( 'TABLE'[ExtendedCost] ),
SUM ( 'TABLE'[ExtendedSell] )
)
Hardcoding "1" in the measure prevents the suppression of blank if the DIVIDE expression returns blank.
A more performant version of this measure uses a variable:
Margin % =
VAR vExtendedSell =
SUM ( 'TABLE'[ExtendedSell] )
VAR vResult =
DIVIDE ( vExtendedSell - SUM ( 'TABLE'[ExtendedCost] ), vExtendedSell )
RETURN
vResult
Proud to be a Super User!
Try rewriting the measure like this:
Margin % =
DIVIDE (
SUM ( 'TABLE'[ExtendedSell] ) - SUM ( 'TABLE'[ExtendedCost] ),
SUM ( 'TABLE'[ExtendedSell] )
)
Hardcoding "1" in the measure prevents the suppression of blank if the DIVIDE expression returns blank.
A more performant version of this measure uses a variable:
Margin % =
VAR vExtendedSell =
SUM ( 'TABLE'[ExtendedSell] )
VAR vResult =
DIVIDE ( vExtendedSell - SUM ( 'TABLE'[ExtendedCost] ), vExtendedSell )
RETURN
vResult
Proud to be a Super User!
Thanks for the quick help! Worked!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.