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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sdas1
Frequent Visitor

Replace blank with zero value in Matrix visual when data not available

Hi All,

 

Need an urgent help for my Power BI dashboard. In matrix visualization format, I have to show average billable hours against employees under various departments against every date ( cloumn). Now the challenge is if any employee who started working in middle of the month or just work for few days then only it show data/value only for that particular date in dasboard otherwise show blank. So is it possible to show zero instead of blank irrespectative of employee's data available or not. Please respond to my query at earliest. Thanks in advance.

sdas1_0-1686898141467.png

 

2 REPLIES 2
sdas1
Frequent Visitor

Hi Amit,

 

Thanks for your prompt response. However I have  some queries on your resolution , so could you please help to understand it in a better way by answering those below queries:

  • Are you advicing to create a  separate table by using "CALENDAR" function and then create a relationship between Calendar table and " Start Date" from the main table " Planned time Utilisation" . Refer the below screenshot for your reference
  • sdas1_0-1686910233540.pngsdas1_1-1686910304768.png

     

  • 0 between range
    Measure = var _1= [M1] +0 what does that mean?  What does M1 here means. You also mentioned current measure. So are you referring below meausre as higlighted in below screenshot:sdas1_2-1686910597094.png

     

amitchandak
Super User
Super User

@sdas1 , Try measure like , summing current measure is m1

 

0 between range
Measure = var _1= [M1] +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.