Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, Is there any calculation that I can do in a matrix table that would allow me to subtract one value in a column by another value in the same column?
I have attempted to do here but the values don't change:
(if(apps[curr_month] = "Yes" && 'apps'[app_cat] = "YTL", 'apps'[amount]
-
if(apps[curr_month] = "Yes" && 'apps'[app_cat] = "INT", 'apps'[amount]
Example current output
App_cat Jan
YTL. 40000
INT. 100000
Output I'm trying to achieve. The INT value takes the 10000 from the above table and subtracts the value for YTL.
App_cat Jan
YTL. 40000
INT. 60000
Hi,
Assuming Amount is a measure that you have already written, write this measure
Measure = [Amount]-calculate([Amount],'apps'[app_cat]="YTL")
Thanks for your suggestion. I have tried this measure but all that seems to happen is my value for "YTL" returns a 0.
You are welcome. What happens to the INT value?
The same value remains, 100000.
Share the download link of the PBI file.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 34 | |
| 33 | |
| 31 |