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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
KBVelasco
Frequent Visitor

Modify this Measure to return 0

How can I modify the following measure to return a '0' instead of a blank?

 

CALCULATE(AVERAGEX(TimeEntryUsers, [SumLoggedHours]))
2 ACCEPTED SOLUTIONS
AlB
Super User
Super User

Hi @KBVelasco 

Just add a zero to it

0 + CALCULATE(AVERAGEX(TimeEntryUsers, [SumLoggedHours]))

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

View solution in original post

Anand24
Super User
Super User

Hi @KBVelasco ,

 

You can use the below DAX:

COALESCE(CALCULATE(AVERAGEX(TimeEntryUsers, [SumLoggedHours])),0)

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

 

View solution in original post

2 REPLIES 2
Anand24
Super User
Super User

Hi @KBVelasco ,

 

You can use the below DAX:

COALESCE(CALCULATE(AVERAGEX(TimeEntryUsers, [SumLoggedHours])),0)

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

 

AlB
Super User
Super User

Hi @KBVelasco 

Just add a zero to it

0 + CALCULATE(AVERAGEX(TimeEntryUsers, [SumLoggedHours]))

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

August Carousel

Fabric Community Update - August 2024

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