cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors