Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I have a table with 2 months worth of Date data, and when i use it as a slicer it shows all months of the year. Even weirder, if I add another column for slicer (like category/sex etc...) in my slicer it will only display the two correct months. Unfortunately, I do not want to slice it by 2 categories so I am stuck with this bloated slicer.
Other question while I'm at it, is there a way to specify a default value for the slicer instead of having every value selected by default?
Solved! Go to Solution.
@Anonymous , No, if you want to function based. Static Value yes.
We create this type of column in date table to always select this month
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0) >= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
@Anonymous , No, if you want to function based. Static Value yes.
We create this type of column in date table to always select this month
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0) >= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
Ideally I wanted to use hierarchy so I could not get a bloated list for each year i keep adding to this dashboard.
But for now that works.
Thanks.
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |