March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
28 | |
21 | |
20 | |
13 | |
10 |