Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I feel like this particular issue is likely really simple but I can't find any good examples.
I have a really simple report with a date slicer and two visuals. I need one visual to display the data from the selected slicer date and the other visual to display +1 day from the selected slicer date. This would be easy if the date selection was constant to use relative dates but the user may want to select a date from last week and then the relative dates stops working as intended.
Any ideas?
Solved! Go to Solution.
Hi jarnolky,
You could also use DATEADD function
Example
SalesTotal = SUM('SalesData'[Sales])
SalesTotalNextDay = CALCULATE([SalesTotal],DATEADD(_Calendar[Date],1,DAY))
Hope that helps.
Thank you
@amitchandak @jsaunders_zero9 Thank you so much! I knew I was over thinking this one, I really appreciate it!
Hi jarnolky,
You could also use DATEADD function
Example
SalesTotal = SUM('SalesData'[Sales])
SalesTotalNextDay = CALCULATE([SalesTotal],DATEADD(_Calendar[Date],1,DAY))
Hope that helps.
Thank you
@Anonymous , if you need next day
example with date table and time intelligence
Next Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])+1))
Next Day = CALCULATE(sum('Table'[Qty]), nextday('Date'[Date]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
105 | |
80 | |
68 | |
61 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
70 |