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 nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Context:
I have one tables on PowerBI
Activity:
| Date | Store | Sales | Gross Margin |
| 01/01/2021 | Branch 1 | 10000 | 2000 |
| 01/02/2021 | Branch 1 | 20000 | 4000 |
| 01/03/2021 | Branch 1 | 15000 | 3000 |
| 01/04/2021 | Branch 1 | 21000 | 4100 |
| 01/05/2021 | Branch 1 | 30000 | 6000 |
I have a Date slicer having the list of dates on this table.
I need to add a column indicating if the date is before or on, from the value selected on the slicer,
For example if 01/03/2021 is selected on the slicer I want this flag column:
This column needs to be dynamic, is this possible?
| Date | Store | Sales | Gross Margin | Flag |
| 01/01/2021 | Branch 1 | 10000 | 2000 | 1 |
| 01/02/2021 | Branch 1 | 20000 | 4000 | 1 |
| 01/03/2021 | Branch 1 | 15000 | 3000 | 1 |
| 01/04/2021 | Branch 1 | 21000 | 4100 | 0 |
| 01/05/2021 | Branch 1 | 30000 | 6000 | 0 |
Solved! Go to Solution.
Hi @emmanuelvallejo ,
Assuming its semantics, and that you don't mind that its a measure, yes, its possible. Please see below:
Hope that this works for you?
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hi @emmanuelvallejo ,
Assuming its semantics, and that you don't mind that its a measure, yes, its possible. Please see below:
Hope that this works for you?
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hello Steve,
It works this way, I guess I can move forward on the solution using it.
Thanks for you reply and example
No. You can only modify measures based on filter selections. calculated columns are not impacted by filters.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |