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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.