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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

New Measure with null fields

I work in Safety, health and enviroment team in a company.

For that, i need some results about safety forms.

 

I've created a column with SWITCH funciton, to categorize form data.

 

Then, i made anothers measures, to COUNTROWS for each category that i want to know how many forms are.

 

After that, i put all these measures and the category data in a new bar chart. Unfortunetly, i'm not able to make all these measure data be on the same column, they always let some data in blank.

 

I'm not trying to make another table because i dont want to lose my relationships between tables that already exists.

 

Can you guys give me some help?

 

Bellow, my codes and my chart.

 

Each category, has: RETAIL_QUANTIDADE = COUNTROWS(FILTER('TB_PIRAMIDE';'TB_PIRAMIDE'[SECTOR_SITE] = "RETAIL"))

And the graph with the data:

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

I think that you need to create a single column in your table that has the value you want to display so that basically you only have your "category" and your "value" as columns in your visual.

 

Tough to say really, I'm not sure I'm following this.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Well, and what about the relationship? I dont know how to do that without losing the relationship. And, in advance, i cannot relation two measures, right?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.