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.
Team,
I have a table which contains date from Jan 2020 to Dec 2020 and i have created a slicer as below, selected may month date manually ... but i want to select always current month minus 2 months as a default selection ... is it possible to do? pls help.
Solved! Go to Solution.
@Mani1205 , Not possible to default slicer by function.
You can create a column like this and have the values selected
new column =
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Last to Last Month" ,
eomonth([Date],0) >= eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0) >= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
new column =
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Data Month" ,
Format([Date],"MMM-YYYY")
)
and select last to last month or data month and save the slicer value
Hi @Mani1205 ,
You can refer the content in the following link as workaround to achieve it.
Power BI - How to Set a Default Slicer Value
Best Regards
Rena
Hi @Mani1205 ,
You can refer the content in the following link as workaround to achieve it.
Power BI - How to Set a Default Slicer Value
Best Regards
Rena
@Mani1205 , Not possible to default slicer by function.
You can create a column like this and have the values selected
new column =
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Last to Last Month" ,
eomonth([Date],0) >= eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0) >= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
new column =
Switch( True(),
eomonth([Date],0) >= eomonth(Today(),-1),"Data Month" ,
Format([Date],"MMM-YYYY")
)
and select last to last month or data month and save the slicer value
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |