Forum Discussion
Matrix showing only rows having values in every columns
- 8 years ago
Hi Zoko,
The correct check value for yellow company should not be marked as 0, because it has no value for "Cedante" role, right?
In my above post, such a scenario returns expected check value. Not sure how your source dataset is, maybe you should post some dummy data here. By the way, are "Somme de REFID" and "Somme de BUID" original fields in dataset, or calculated measures or aggregated columns?
Besides, please try this measure to check if it works in your scenario.
check2 = CALCULATE ( IF ( SUM ( Test2[REF ID] ) = BLANK (), 1, 0 ), FILTER ( ALLEXCEPT ( Test2, Test2[Company] ), Test2[Role] = "Ced" ) ) + CALCULATE ( IF ( SUM ( Test2[BUID] ) = BLANK (), 1, 0 ), FILTER ( ALLEXCEPT ( Test2, Test2[Company] ), Test2[Role] = "Ced" ) ) + CALCULATE ( IF ( SUM ( Test2[REF ID] ) = BLANK (), 1, 0 ), FILTER ( ALLEXCEPT ( Test2, Test2[Company] ), Test2[Role] = "Rea" ) ) + CALCULATE ( IF ( SUM ( Test2[BUID] ) = BLANK (), 1, 0 ), FILTER ( ALLEXCEPT ( Test2, Test2[Company] ), Test2[Role] = "Rea" ) )Regards,
Yuliana Gu
Hey everyone !
I was wondering if there are any ways to make my matrix shows only rows having values in all my columns.
In my case i have companies names as rows and 2 columns with 2 different roles.
One company can have either one or both roles. Plus each roles have 2 values. Thus I want all rows with 4 values
I have tried to set up some filters, having both my values filtered as not blank and my role column with the same setting, however, it doesn't take into account both columns.
I have been trying multiple things but I can't get what I am aiming for.
Might need to change my data model.
Thanks for help :smileyhappy: