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
Anonymous
Not applicable

Need help on DAX

Hi Experts,

 

I have data like below: Name and Value (aggregation: Average). 

 

2016-10-17_9-19-57.png

Now I want to see the data like below:

 

2016-10-17_9-20-23.png

 

Logic: If I have same name, then it should return summation on avg. values and if it is only one name then it should return avg. value.

Please note that I have some other fields with Name.

 

Could someone please help me to solve this?

 

Thank you,

Niket Talati

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found out the solution. First I created a measure with AVERAGEX and and another measure with SUMX(distinct(column name), measure).

 

Regards,

Niket Talati

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

I must be missing something, you should just need to do a table visualization, add in [Name] from your first table. Add in [Avg. Value] from your first table and choose an aggregatin of SUM.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler:

 

Thanks for the reponse. Yes, I think I am not clear in my last message. I am using table only and changing the aggregation to "Average" for the measure. Now I need summation of this avg. aggregation value in new table based on the logic I mentioned above. I tried with everything and as I have written in above message: I have some other fields in the table so the aggragation is not just simple.

 

Regards,

Niket Talati

Anonymous
Not applicable

I found out the solution. First I created a measure with AVERAGEX and and another measure with SUMX(distinct(column name), measure).

 

Regards,

Niket Talati

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.