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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
akhaliq7
Continued Contributor
Continued Contributor

Trying to show 0 in each row of a Matrix Visual

I have a matrix visual, in the row field have sales persons and in the values trying to add a measure, the measure is currently defined as below:

Holidays = 0

But when I add this measure a blank row is returned under sales persons. Can anyone help me with this.
 
FYI: The reason the value is at 0 is because this measure is going to be a placeholder.
 


    

1 ACCEPTED SOLUTION
akhaliq7
Continued Contributor
Continued Contributor

IF(DISTINCTCOUNT('Table'[Department ID]) = 1, 0, BLANK()),

 
Using an if statement and distinctcount has solved my problem

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

pls try this

Measure = LEN(MAX('sales' [persons]))*0

 

akhaliq7
Continued Contributor
Continued Contributor

IF(DISTINCTCOUNT('Table'[Department ID]) = 1, 0, BLANK()),

 
Using an if statement and distinctcount has solved my problem
3CloudThomas
Solution Supplier
Solution Supplier

I have taken a look at the link above, I don't think this is what I am look for, the article refers to showing rows with no values, but I am not trying to do this instead I want to show a 0 for every row in the department field inside a matrix, this 0 is hardcoded and does not belong to a column and/or table.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.