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
chaichatp
Helper III
Helper III

Showing 2 cards result that filtred from diffrent slicer on the same page

For exaple, If I have a same data and I want to compare result for different date what is the best solution?

Page 1, Filter 1

Pager 2, Filter 2

Page 3, cpmpare both Filter1&2 and Card 1 and 2 result show here. 

 

I tried to play with sync slicer but It cannot play with each element in the page, it plays with the whole page. 

Thank you.

 

1 ACCEPTED SOLUTION

Hi,

 

I am sorry i have misunderstood your requirement, please try these new measures for two card visuals:

Value-1 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date] in FILTERS('Date Slicer-1'[Date-1])))
Value-2 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date] in FILTERS('Date Slicer-2'[Date-2])))

When you choose more than one value in one slicer, the result shows:

25.PNG

 

Best Regards,

Giotto Zhi

 

View solution in original post

7 REPLIES 7
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please take following steps:

1)Create two seperate date slicer table:

Date Slicer-1 = SELECTCOLUMNS('Table',"Date",'Table'[Date])
Date Slicer-2 = SELECTCOLUMNS('Table',"Date",'Table'[Date])

2)Create two measures to fetch the selected value in two slicers:

Value-1 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date]=SELECTEDVALUE('Date Slicer-1'[Date-1])))
Value-2 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date]=SELECTEDVALUE('Date Slicer-2'[Date-2])))

Choose these two measures as Card visuals, when select two different dates in above two slicers, the result shows:

35.PNG

Hope this can help.

 

Best Regards,

Giotto Zhi

 

 

I tried your way but once I chose more than 1 choice in either Slicer 1 or 2, it showed me Blank. Did that happen to you too? Thanks

 

 

 

Capture.PNG

Hi,

 

You should choose two date in two different slicers.

Here is my test pbix file:

pbix 

Sorry for any inconvenience.

 

Best Regards,

Giotto Zhi

Already tried your file, got same result as mine.

 

Capture.PNG

Hi,

 

I am sorry i have misunderstood your requirement, please try these new measures for two card visuals:

Value-1 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date] in FILTERS('Date Slicer-1'[Date-1])))
Value-2 = CALCULATE(SUM('Table'[Values]),FILTER('Table','Table'[Date] in FILTERS('Date Slicer-2'[Date-2])))

When you choose more than one value in one slicer, the result shows:

25.PNG

 

Best Regards,

Giotto Zhi

 

Thank you so much, really simple and useful.

amitchandak
Super User
Super User

@chaichatp ,Did not get it completely. please explain with example

 

This seems like most nearest to current description : https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.