Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
Does anyone know how I can display zeros in the below matrix, there is no data for JobLevel1 Males but my client really wants zeros to display instead of blanks.
My measure is Total_Gender = IF(CALCULATE(COUNTROWS('Data'),'Data'[Type]="Gender")=BLANK(),0,CALCULATE(COUNTROWS('Data'),'Data'[Type]="Gender")),0)
| Year | 2018 | Total | |
| Gender | JobLevel1 | JobLevel2 | |
| Female | 3 | 4 | 7 |
| Male | 4 | 4 | |
| Total | 3 | 8 | 11 |
Thanks,
Jennifer
Solved! Go to Solution.
Hi @Anonymous Jennifer
Create two dummy columns as given below.
Dax Function:
Joblevel1 Dummy = IF(Sheet1[Joblevl1]=BLANK(),0,Sheet1[Joblevl1])
Joblevel2 Dummy = IF(Sheet1[Joblevel2]=BLANK(),0,Sheet1[Joblevel2])
And place this columns in the visual you will get the visual as given below.
I hope it would help you.
Hi @Anonymous Jennifer
Create two dummy columns as given below.
Dax Function:
Joblevel1 Dummy = IF(Sheet1[Joblevl1]=BLANK(),0,Sheet1[Joblevl1])
Joblevel2 Dummy = IF(Sheet1[Joblevel2]=BLANK(),0,Sheet1[Joblevel2])
And place this columns in the visual you will get the visual as given below.
I hope it would help you.
Perhaps:
Total_Gender = IF(ISBLANK(CALCULATE(COUNTROWS('Data'),'Data'[Type]="Gender")),0,CALCULATE(COUNTROWS('Data'),'Data'[Type]="Gender"))
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.
| User | Count |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |