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
hughfitz
Frequent Visitor

Averages

Hi all,

 

Real newbie here, I'm using some census data for analysis in power BI and I'm trying to work out the average income of certain postcodes (Australian). It's in a CSV string value format. 

Here is a list of my data, essentially what I want to calculate is: (Count x average income)/sum of count by PostCode and/or State if that makes sense.

 I've had a play with quick measures etc. but I cant quite get it. 

Thanks! Power BI Question.PNG

1 ACCEPTED SOLUTION

@hughfitz,

Please check if the DAX in the PBIX file below returns your expected result.

https://1drv.ms/u/s!AhsotbnGu1Nok1DJUtrfcCk7XQ48

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
hughfitz
Frequent Visitor

To add  to the above, the orignal data was broken down into income ranges ($1-$149, $150-$299 etc.) so I averaged out each to become a single value. i.e. in Queensland, at postcode 4670 there were 343 people earnning $349.50, in addition at the same postcode there were 200 people earning $75, 12 earning $1499 etc. 

Sorry to overexplain, but I havent seen a lot of info on data that is shown in string format on the forum

@hughfitz,

Please check if the DAX in the PBIX file below returns your expected result.

https://1drv.ms/u/s!AhsotbnGu1Nok1DJUtrfcCk7XQ48

Regards,
Lydia

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

Hi Lydia,

thanks a lot for tat, it did return the expected result! Much appreciated :). 

 

Hugh

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.