This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 23 | |
| 22 |