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

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.

Reply
adityapv
Helper II
Helper II

Reg: Compare Actual value with two different month based on selection in slicer

Hi Everyone,please help me with this scenario.

1.I need to compare actual value based on the selection of two different months from slicers same like table in attached image.

2.I have taken same date for the months of two slicers.

3.how to achieve with out disturbance one each other slicer.

please find the attached image.Req.png

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi , @adityapv ;

According to you description,you could enter a table as slicer to achieve with out disturbance, then create a measure, as follows:

1.Create a new table as slicer2

Slicer2 = SUMMARIZE('Table',[Month])

2.Create a measure to calculate Actual For month2

Actual For month2 = CALCULATE(SUM([Actual For month1]),FILTER(ALLEXCEPT('Table','Table'[Organization name]),[Month]=MAX('Slicer2'[Month])))

The final output is shown below:

vyalanwumsft_0-1624005108949.png     vyalanwumsft_1-1624005108951.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi , @adityapv ;

According to you description,you could enter a table as slicer to achieve with out disturbance, then create a measure, as follows:

1.Create a new table as slicer2

Slicer2 = SUMMARIZE('Table',[Month])

2.Create a measure to calculate Actual For month2

Actual For month2 = CALCULATE(SUM([Actual For month1]),FILTER(ALLEXCEPT('Table','Table'[Organization name]),[Month]=MAX('Slicer2'[Month])))

The final output is shown below:

vyalanwumsft_0-1624005108949.png     vyalanwumsft_1-1624005108951.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@adityapv , I discussed a similar topic in my video, refer if that can help

 

How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.