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
I have valuations split by adviser for every work day going back 3 years (Essentially a valuation for every day dated). I need to add this to a table of transactions being aggregated in power bi. To do this I need to specify the the date I want the valuation for as doing a between will sum several days up and give me a wrong valuation. I've written a measure to do this and it works fine for the max date, however if I move the slicer max date below this it brings back blanks. I'm slightly confused as I haven't set a max on the table it's calculating only the date and if I put this into a card to see which date comes back it's changes with the slicer correctly. My measure is:
Is your slicer on the Money Movement Transaction'[tfr_create_date_key])?
Then if should reflect the change. The only thing needs to be checked that there no other date filter impacting this calculation.
Whenever filter is used in a calculation, we need to make sure it does not follow the original date filter. Example
Sales Before QTR = CALCULATE(SUMx(FILTER(sales,and(Sales[Order_Date]>= STARTOFQUARTER(DATEADD(STARTOFQUARTER(OrderTime[Order Date]),-1,DAY)) && Sales[Order_Date]<= DATEADD(STARTOFQUARTER(OrderTime[Order Date]),-1,DAY), Sales[Requested_Date]>= STARTOFQUARTER(OrderTime[Order Date]) && Sales[Requested_Date]<= STARTOFQUARTER(OrderTime[Order Date]) )),Sales[Sales]),CROSSFILTER(Sales[Order_Date],OrderTime[Order Date],None))
No the slicer is using the full date from my date dimension, but the dimension is connected via the surrogate date_key to the tfr_create_date_key. My valuation fact also has a surrogate date key, so in my head the date selected from the slicer should set the correct date key to be used to pull the correct valuation. But it looks like it's pulling the top date key ever regardless and then the valuations get set to blank if I move past this date in the slicer.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |