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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
antoinersw
Regular Visitor

Dynamic Sum of Averages

Hello,

This is the data sample

Client heures_quantityduree_presta€ HT SignesPremier key_entry_client
A162844629.226/09/202271378
B281794522.7303/01/202316723837
B8430421361.0710/03/202216723837

 

Here is a representation in the matrix :

antoinersw_2-1673976661332.png

Subtotal 1 should equals 16

Subtotal 2 should equal 56 (average of the 2 values of its category)

Grand total should equal 72 (56+16)

The date filtering is important. 

I tried to group by client but I lost the granularity of the date and therefore cannot filter anymore

Please advise me a solution in DAX.

 

Regards

 

 

 

 

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1673978201117.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
antoinersw
Regular Visitor

thanks a lot it works like a charm

CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1673978201117.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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