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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
paulo_scdata
New Member

Problem with blank values

Hi. I have tried some solutions in the forum but all of them follow another problem for my situation, so I believe this post might be a bit more specific.

I made a measure on Excel that count how many days a ticket has been open for by calculating (Today - Ticket Opening Date), then, based on that column, if a value is over 6 or more, I label it 6+. Then, I made a basic matrix visual where I make a relation between a type of ticket and that measure (named TA). For now, the matrix table looks like this:

paulo_scdata_0-1658756999999.png

But, see, I have no value for 0 or 2 (because they don't exist within TA measure).

I'd like to see all columns from 0 to 6+ even if the values are blank and I still have the non un 6+ column if necessary for any adjustments. Also, if possible, mark where the values are blank with zero.

 

Thanks a lot for your help!

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @paulo_scdata ;

You could create a new table aboult 0-6+;

Then create a measure.

1.create a new table.

New = UNION( VALUES('Table'[Days]),{0,2})

vyalanwumsft_0-1658986781919.png

2.create a measure.

values = CALCULATE(SUM('Table'[values]),FILTER('Table',[Days]=MAX('New'[Days])))+0

The final show:

vyalanwumsft_1-1658986831077.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
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

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @paulo_scdata ;

You could create a new table aboult 0-6+;

Then create a measure.

1.create a new table.

New = UNION( VALUES('Table'[Days]),{0,2})

vyalanwumsft_0-1658986781919.png

2.create a measure.

values = CALCULATE(SUM('Table'[values]),FILTER('Table',[Days]=MAX('New'[Days])))+0

The final show:

vyalanwumsft_1-1658986831077.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PC2790
Community Champion
Community Champion

Hey @paulo_scdata 

 

See if this similar thread helps you deal with ypur problem.

And for highlighting the values where it is zero, you can make use of condtional formatting.

 

Hi @PC2790 ,

 

Thanks for the answer but no, it didn't.

First, I'm sorry, when I said TA was a measure, I meant it is a column. You can't use measures as columns in a matrix, only values. I meant it as a measure of days passed.

Second, as it's not a measure, I can't seem to think of a solution to add numbers that aren't in the column TA, since it's related to it existing or not. I really don't know where to go from here.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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