Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have the below Year table and Year filter from Table1. I need CheckMeasure123 to put 1 next to 2018, 2019, 2020 when i select 2020 from the year filter.
Any help around this is greatly appreciated.
Solved! Go to Solution.
Hi @Anonymous ,
You will need two tables.
Create a simple table as slicer with first formula and create measure with second formula like below.
slicer = DISTINCT('Table'[year])
Measure = IF(SELECTEDVALUE('Table'[year])>SELECTEDVALUE('slicer'[year])-3&&SELECTEDVALUE('Table'[year])<=SELECTEDVALUE(slicer[year]),1,0)
Result would be shown as below.
Best Regards,
Jay
Hi @Anonymous ,
You will need two tables.
Create a simple table as slicer with first formula and create measure with second formula like below.
slicer = DISTINCT('Table'[year])
Measure = IF(SELECTEDVALUE('Table'[year])>SELECTEDVALUE('slicer'[year])-3&&SELECTEDVALUE('Table'[year])<=SELECTEDVALUE(slicer[year]),1,0)
Result would be shown as below.
Best Regards,
Jay
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy Thanks. Actually they are from the same table. Can this be possible without creating a new table for year alone?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous because you want to show items that are NOT selected, you need at least two tables that are NOT related.
You could create the table using DAX: SlicerYearTable = VALUES(table[year]) or in Power Query.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |