Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Gurus,
I have a request, hope masteres have some solutions for this. my data is like below. the tabel is only filtered to 82 (there are 120 matrix ids)
I created the below measure
=====
Measure
Solved! Go to Solution.
HI @amalrio,
Did these records really exist in your table? If this is a case, you can add '+0' to your formula to force expand these blank fields with zero.
Or you need to create a table to extract all column field values and use it on your matrix, then you can write a measure formula to calculate results based on the current row and column category and use 'if statement' to replace the blank part to zero.
If you still confused about the coding formula, please are some dummy data with raw table structure to help us clarify your data structure and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@amalrio , Is the text column having null values , or is it coimg because of join.
Try like
Measure
VAR Total =
CALCULATE (
COUNTA ( 'FACT-Data'[TEXT] ),
//KEEPFILTERS ( 'FACT-Data'[TEXT] <> BLANK () ),
'DIM-Matrics'[MATRIX_ID] = 82
)
VAR Result = IF ( Total = BLANK (), 0, Total )
RETURN
if(isblank(Max( 'FACT-Data'[TEXT] )) && [Total]>0, 0, [total])
Thanks for the reply, but it did not work. it still gives me the zero, in the Powerbi data tabel values are blank see below image.
HI @amalrio,
Did these records really exist in your table? If this is a case, you can add '+0' to your formula to force expand these blank fields with zero.
Or you need to create a table to extract all column field values and use it on your matrix, then you can write a measure formula to calculate results based on the current row and column category and use 'if statement' to replace the blank part to zero.
If you still confused about the coding formula, please are some dummy data with raw table structure to help us clarify your data structure and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.