Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a single table which I created from a public dataset, with the following layout / sample records:
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.:
It's rolling up my columns correctly, but the measure is ignoring my visual filter.
What am I doing wrong?
Solved! Go to Solution.
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsWell, 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.
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI'm an idiot. Those were temporary tables I used as I was working through the data.
All better now - thanks.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 63 | |
| 31 | |
| 30 | |
| 23 |