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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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