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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JimmyDQN
Helper I
Helper I

AverageIF - Based on one category, combined with another average

Hi all,

Our developer (small time company) is on vacation and since I am not able to do calculated columns myself as we use SSAS cube, I am hoping one of you can help me. 
The thing is - I have a Hierarchy in Table 1 containing Continent, Country and City. In Table 2, I have Person ID and Table 3, I have hours registered. 

I would like to do a measure (preferably a calculated column, but I am not able to do this, as I don't have access to the SQL server) where I am calculating the following: an Average based on City and an Average compared to the others in the same city. I would LOVE for it to be in the same table / visualization. Is this even doable without any developer having to create a new column for me?

 

See an example below

ContinentCountryCityPerson IDHours registeredAverageBasedonCityAverage compared to group in City
AsiaChinaGuangzhou76875,00%
AsiaChinaGuangzhou8108125,00%
EUGermanyBerlin23475,00%
EUGermanyBerlin454125,00%
EUSwedenStockholm655100,00%
NAUSANew York121811,11%
NAUSANew York341822,22%
NAUSANew York561833,33%
NAUSALA404040100,00%
NAUSANEw York106018333,33%




1 ACCEPTED SOLUTION

Hi @JimmyDQN,

 

Is it a Direct Query connection? I have updated the attachment. You can try it again.

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

15 REPLIES 15

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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