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
kristydanda
Frequent Visitor

Display Slicer value dynamically on card

Hi

I have Phonelog table that have DateofRecord as a column

I use DateofRecord in Slicer.  what I want to get is when user choose As of Date in the last 20(or N number of days). I like to display 20 (or N number of days) in the card. see attached picture.

How to accomplish this?

thanks

 

 

Capture.PNG

 

1 ACCEPTED SOLUTION

thank you Lin, this works. thank you for your quick reply!

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @kristydanda

If "As of Date" is a field of calendar table?

If so, you could create a measure 

number of days be choosed = CALCULATE(COUNTA('calendar'[As of Date]))

then drag it into a card visual.

 

If not, you could create a calendar table, then create a relationship with As of Date, 

then create a measure like below:

number of days be choosed = CALCULATE(COUNTA('calendar'[Date]))

Then drag the field of date from calendar table into slicer and the measure into card visual.

6.JPG

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank you Lin, this works. thank you for your quick reply!

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.