Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi everyone,
In a Power BI report I need to mark Active participants as 1, based on the latest ParticipationDate labeled Green, within the selected date range.
With the date slicer ranging from 1-1-2020 to 31-8-2020, the outcome should be like this:
ID | ParticipationDate | Green/Red | Latest green | Active participant Y/N |
1 | 3-2-2020 | Green | 12-2-2020 | 0 |
1 | 12-2-2020 | Green | 12-2-2020 | 1 |
1 | 16-4-2020 | Red | 12-2-2020 | 0 |
2 | 1-5-2020 | Green | 1-5-2020 | 1 |
2 | 9-8-2020 | Red | 1-5-2020 | 0 |
2 | 2-6-2021 | Green | 1-5-2020 | 0 |
There are also slicers on the report page for Table1 that need to remain usable:
Measure used for Latest green:
I created this calculated column but it doesn't do the trick, because it ignores the date slicer:
Solved! Go to Solution.
Thank you for your replies, much appreciated!@amitchandak was right and a measure needed to be used:
Thank you for your replies, much appreciated!@amitchandak was right and a measure needed to be used:
Hi @GKJARC ,
Check whether the ParticipateDate field is the correct date type. After modification, can you get the correct result? I created a similar data model. After importing, the text type is displayed, and the date cannot be judged directly on this field. Is it possible to provide the correct data model (delete sensitive information), I will answer you as soon as possible.
Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.