Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
paultaylor006
Frequent Visitor

Creating a slicer for current month and YTD

I am trying trying to create a slicer that will allow financial reports to be filtered to disply current month or YTD data.

 

I have 2 fact tables (actual and budget) which are both linked to a dates table plus some other dimensions tables. The dates table already has current month and ytd columns created by using an offset calculation within the dates table. 

 

I suspect the solution is through creating a SWITCH dax measure but cannot quite work it through. 

 

Any help appreciated. 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @paultaylor006 

it seems field parameter might help you switching among multiple measures to plot the visuals. 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @paultaylor006 

it seems field parameter might help you switching among multiple measures to plot the visuals. 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.