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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Problem with simple measure?

I have a single table which I created from a public dataset, with the following layout / sample records:

table.PNG

Now I want to create a measure for Unemployment Rate which is based on the very simple function (Unemployed / LaborForce). I need a measure instead of a calculated column, because I want to analye the data by geography and race.

 

UERate = DIVIDE(SUM(UE1[Unemployed]), SUM(LF1[LaborForce]))

 

What's weird is that the measure always gives me the calculation for the entire table, regardless of how I slice the data using values from the same table, e.g.:

 

table2.PNG

It's rolling up my columns correctly, but the measure is ignoring my visual filter.

 

What am I doing wrong?

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Looking at your measure you are making the calculation based on two different tables UE1 and LF1 if the tables don't have any relationship with the table where the Race column is based then you will get the full result for both tables so in all rows the same value since there is no context connection between the measure and the table columns.

 

I assume that when you refer that you have a single table is a new one where you have summarize your information correct?

 

You need to make the measure based on that table columns in your case Race / LaborForce / Unemployed.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Well, in the measure, you refer to two separate tables while your table shows both columns in the same table. Generally when a measure acts the way your is acting, there is a missing relationship between two tables.

 



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...
MFelix
Super User
Super User

Hi @Anonymous ,

 

Looking at your measure you are making the calculation based on two different tables UE1 and LF1 if the tables don't have any relationship with the table where the Race column is based then you will get the full result for both tables so in all rows the same value since there is no context connection between the measure and the table columns.

 

I assume that when you refer that you have a single table is a new one where you have summarize your information correct?

 

You need to make the measure based on that table columns in your case Race / LaborForce / Unemployed.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Anonymous
Not applicable

I'm an idiot. Those were temporary tables I used as I was working through the data.

 

All better now - thanks.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.