Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Good morning,
I'm wondering if it's possible to have % difference columns in a switch function.
I have this switch function which is returning yearly sales? I would like to add 2 columns showing the % diff from 2020 & 2019.
Thanks in advance.
@brinky , if you have date table and year week coming from there. Last year same day week is 1 year behind , which can be used
example
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
Thanks Amit for your prompt reply, maybe I didn't explain myself well.
This is what I'm trying to add to my yearly sales.
@brinky , If year is column(used in matrix column, you need a hybrid table). Not a direct option, you need alternatives
Otherwise, use [Measure] and [Change %] measure as values
if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...
vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc
Thanks Amit, this looks interesting.
As a superuser 😉 just for curiosity are there any altermatives?
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 |
|---|---|
| 55 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |