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.
Hello All,
I have a "year month" Slicer. Every month my data gets updated and I want slicer to be auto-selected for all current year and month, but also have previous year month unselected.
I have created a calculated column as
Column = IF(MONTH(Table1[Date])=MONTH(NOW()) && YEAR(Table1[Date])=YEAR(NOW()),"current month",MONTH(Table1[Date]))
and kept in under visual filter, it shows only current year and month, the previous year month doesn't appear at all.
I want current year month autoselected and previous unselected
Thanks,
Aditya
Hi @Anonymous
Calculated column is static, you could create a measure which changes dynamically every year.
Measure = IF(YEAR(MAX(Sheet1[date]))=YEAR(TODAY()),1,0)
If you want to aotu select the slicer dynamically, it seems impossible.
Best Regards
Maggie
One of the hack is to have calendar till today only.
Also refer
https://community.powerbi.com/t5/Desktop/Slicer-to-select-current-month-as-default/m-p/887473
https://community.powerbi.com/t5/Desktop/Current-Year-Slicer/m-p/704786
I have created calculated column and selected current year, but other years doesn't appear in the drop-down,
My requirement is : I want current year month to be selected but other year month should be unselected.
Can you share a screenshot, what is happening vs what is expected?
Also refer
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
https://www.youtube.com/watch?v=lkHFpmA4SJ4
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |