Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I have a created a Matrix visual. But I would like to fill the empty spaces in the visual with 0.
Is it possible?
If so, can I please how to do that?
Any help is appreciated!
Thank you!
Megha
Solved! Go to Solution.
Hi @Anonymous ,
If you are putting measure in the value section of the matrix visual then you can put a if condition where calculation return value is blank then return 0 else it will return calculate value. Below is the pseudo code of it.
measure =
var _calc = <your calculation>
return if(_calc = blank(),0,_calc)
or simply add +0 at the end like this:-
measure = <your calculation>+0
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous
I'd like to complement a point that if you are putting a column in the Values section, you can create a measure with corresponding aggregation type for the column, like
Total = SUM('table'[Column]) + 0
Or
Count = COUNT('table'[Column]) + 0
Or use other aggregation functions per your need. Use this measure in the matrix to replace original column field.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous
I'd like to complement a point that if you are putting a column in the Values section, you can create a measure with corresponding aggregation type for the column, like
Total = SUM('table'[Column]) + 0
Or
Count = COUNT('table'[Column]) + 0
Or use other aggregation functions per your need. Use this measure in the matrix to replace original column field.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous ,
If you are putting measure in the value section of the matrix visual then you can put a if condition where calculation return value is blank then return 0 else it will return calculate value. Below is the pseudo code of it.
measure =
var _calc = <your calculation>
return if(_calc = blank(),0,_calc)
or simply add +0 at the end like this:-
measure = <your calculation>+0
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |