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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
dw700d
Post Patron
Post Patron

Default Value 0

I have card visuals that show the total amount of toys, cars, cats and houses. I am slicing this data by date. if a date is not selected in the slicer I would like the default value of the card visual to be 0. If a date is selected then the appropriate filtering should flow through. Is there a measure that can help me accomplish this?

 

dw700d_0-1676000588835.png

 

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User
v-zhangti
Community Support
Community Support

Hi, @dw700d 

 

You can try the following methods.
Sample data:

vzhangti_0-1676268475051.png

SUM = SUM('Table'[Value])
Measure = IF(ISFILTERED('Table'[Date]),[SUM],0)

vzhangti_1-1676268516536.pngvzhangti_2-1676268524176.pngvzhangti_3-1676268534832.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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-zhangti
Community Support
Community Support

Hi, @dw700d 

 

You can try the following methods.
Sample data:

vzhangti_0-1676268475051.png

SUM = SUM('Table'[Value])
Measure = IF(ISFILTERED('Table'[Date]),[SUM],0)

vzhangti_1-1676268516536.pngvzhangti_2-1676268524176.pngvzhangti_3-1676268534832.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Ahmedx
Super User
Super User

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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