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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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