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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.