Forum Discussion
Praneeth19
3 years agoFrequent Visitor
Switch between Last one month and custom date range
Hi, I am having a lage date rage for example lets say i have 10 years of date range but when i open a report in power bi service the report must show the date rage of last one month but i must also b...
amitchandak
Super User
3 years agoPraneeth19 , based on what I got you need a column like this in you table
Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1*month(Today())),"Last year Last Month" ,
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
and save on last month
Praneeth19
3 years agoFrequent Visitor
what do i do after creating the new column how do i switch between the latest month and custon date slicer?