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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
HI there,
I have a formula that is currently working now:
Try the below dax:
= Switch(Table[LatestColumn],"Latest 04WKS", Measure*13, "Latest 13WKS", Measure*4,"Latest 26WKS", Measure*2,"Latest 52WKS", Measure*1)
I was able to figure it out with:
I dont know how the exact measure will look like but it would use SELECTEDVALUE(Timeframeslicervalue)
But i believe the timeframeslicer uses 2 different filter, the first and last date. So then you can use:
MAX(SELECTEDVALUE(Timeframeslicervalue)) and MIN(SELECTEDVALUE(Timeframeslicervalue)).
With those values you can do a DATEDIFF() function that calculates the different between the dates. And then, when everything is done you can use that value in an IF statement.
Im willing to write everything for you but then i would need a report with sample data 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |