Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello
I have this data:
I want to have a date parameter. If I choose 01-04-2018 date then it would mean that all dates before 01-04-2018 are actual and all dates from 01-04-2018 are forecast. It looks simple, but I cannot get it working.
Please also have a look at my dashboard with data: https://mega.nz/#!LrpRnSwR!DU_Bir3jYPSU139nSPgsbRuTKsJCeqozj6eKDrAhzbo
Thanks a lot
Regards,
Ignas
Solved! Go to Solution.
Hi @ignas,
The solution could be as follows.
1. Create an independent date table. Don't establish relationships with other tables.
2. Create a slicer.
3. Create a measure like below.
Measure 9 =
VAR selectedDate =
IF ( HASONEVALUE ( 'Table8'[Date] ), MIN ( 'Table8'[Date] ) )
RETURN
IF ( MAX ( DimDate[Datekey] ) <= selectedDate, "Actual", "Forecast" )
Best Regards,
Dale
Hi @ignas,
The solution could be as follows.
1. Create an independent date table. Don't establish relationships with other tables.
2. Create a slicer.
3. Create a measure like below.
Measure 9 =
VAR selectedDate =
IF ( HASONEVALUE ( 'Table8'[Date] ), MIN ( 'Table8'[Date] ) )
RETURN
IF ( MAX ( DimDate[Datekey] ) <= selectedDate, "Actual", "Forecast" )
Best Regards,
Dale
Hello @v-jiascu-msft
It really works very well. Thank you a lot
I have one issue though. Then I try to visualize with a graph it is not possible to display Actual/Forecast column in the graph. Do you know where the problem can be? I cannot add to Legend this newly created column.
Here is a new file: https://mega.nz/#!emIj2Z4A!BtaDt9WFN5KTlMRbM8awLMsqyHPWl7uh0SEDGA_eYic
Thanks a lot
Regards,
Ignas
Hi Ignas,
I'm afraid we can't add a measure in the Legend. Actually, we don't need to do that in your scenario. Because every Axis value only has one Scenario. What't the result you expect?
Best Regards,
Dale
Hey @v-jiascu-msft
Thank you for the response.
Yes of course I need different colors:
We need to know when ACT finished and when BUD/FC starts.
Hi @ignas,
As a workaround, we can change the measure and put it in the field "Color saturation".
Scenario+ =
IF ( MAX ( DimDate[Datekey] ) <= IF ( HASONEVALUE ( 'Table8'[Date] ), MIN ( 'Table8'[Date] ),"Actual"), 1, 0 )
Best Regards,
Dale
Updated link which did not work: https://mega.nz/#!LrpRnSwR!DU_Bir3jYPSU139nSPgsbRuTKsJCeqozj6eKDrAhzbo
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 51 | |
| 44 | |
| 43 | |
| 39 | |
| 32 |