Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi team,
I need a column level difference to show in table metrix.
current data:
Column level I am using a Category from a table in table metrix. how to show difference between columns like
Economy no change, Basic - Economy , Deluxe - Basic , Premium - Deluxe , Supreme no change
Please help me. Also I am using data source as Live connection so not able to add new table or column so please help a solution of measure only if possible. thanks
Solved! Go to Solution.
Hi @bhuprakashs ,
If you are using a live connection this is a good option to use visual calculations:
Versus previous = [Total Value] - PREVIOUS([Total Value],COLUMNS)
The total value is your measure:
If you don't want to show difference when the value is blank on the last column just redo to:
Versus previous = IF(ISBLANK([Total Value]), BLANK(), [Total Value] - PREVIOUS([Total Value],COLUMNS))
Check the detail how to use visual calculations:
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @bhuprakashs ,
If you are using a live connection this is a good option to use visual calculations:
Versus previous = [Total Value] - PREVIOUS([Total Value],COLUMNS)
The total value is your measure:
If you don't want to show difference when the value is blank on the last column just redo to:
Versus previous = IF(ISBLANK([Total Value]), BLANK(), [Total Value] - PREVIOUS([Total Value],COLUMNS))
Check the detail how to use visual calculations:
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@rohit1991 thanks for help but it is giving me same value. it is not giving me difference value
Hii @bhuprakashs
Since Economy and Supreme should show no change, and the other columns should subtract the previous one, use this pattern:
Column Difference =
VAR Col = SELECTEDVALUE('Category'[ColumnName])
VAR PrevCol =
SWITCH(
Col,
"Basic", "Economy",
"Deluxe", "Basic",
"Premium", "Deluxe",
BLANK()
)
RETURN
IF(
ISBLANK(PrevCol),
BLANK(),
CALCULATE([YourValueMeasure])
- CALCULATE([YourValueMeasure], 'Category'[ColumnName] = PrevCol)
)
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 60 | |
| 48 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 119 | |
| 116 | |
| 37 | |
| 34 | |
| 30 |