Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table with months and showing amounts and a measure comparing last month and this month's amount:
| Month | This Month | Not This Month | Amount | Measure: Amount - Lastmonth amount |
| 1-Jan | TRUE | FALSE | 500 | 0 |
| 1-Feb | FALSE | TRUE | 700 | 200 |
| 1-Mar | FALSE | TRUE | 400 | -300 |
When I select the month for the slicer, I would like to have a measuer or a column to show the following:
if the selected month is xx month, the value should be the [This Month]. If not, the value of [Not This Month].
Example: selected month is February via slicer, the table should show this (new measure picks up not this month from jan and this month value from feb):
| Month | Amount | Measure: Amount - Lastmonth amount | New Measure |
| 1-Jan | 500 | FALSE | |
| 1-Feb | 700 | 200 | FALSE |
| 1-Mar | 400 | -300 | TRUE |
Solved! Go to Solution.
Hi @Pat8 ,
You need to create a disconnected table as a slicer,
slicer = DISTINCT('Table'[Month])
then create the following measure:
Measure = IF(MAX('Table'[Month])>SELECTEDVALUE(slicer[Month]),TRUE(),FALSE())
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Pat8 ,
You need to create a disconnected table as a slicer,
slicer = DISTINCT('Table'[Month])
then create the following measure:
Measure = IF(MAX('Table'[Month])>SELECTEDVALUE(slicer[Month]),TRUE(),FALSE())
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Pat8 ,
You may try this:
Thanks for the reply! What I need is the TRUE/FALSE based on the selected month on the slicer.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.