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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TcT85
Helper III
Helper III

Summarise Median values for a product but plus the median values based on productionlap

HI,

 

Need help to write a DAX formula to get the MEDIAN values on Time for each Product but I need to summarise the production median time for each product as well.

 

For example.

Product A with production lap 1 has a median value of 6,5 and production lap 2 has a median value 5,5,

For product A I need to show 12.

For product B I need to show 8,5.

 

 

Data Table

ProductSerialNumberProductionLapTime
A117
A128
A216
A227
A314
A324
A417
A424
B517
B618
B719
B8116
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Write these measures

Measure = MEDIAN(Data[Time])
Measure 2 = SUMX(VALUES(Data[ProductionLap]),[Measure])

Hope this helps.

Ashish_Mathur_0-1715225314530.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Write these measures

Measure = MEDIAN(Data[Time])
Measure 2 = SUMX(VALUES(Data[ProductionLap]),[Measure])

Hope this helps.

Ashish_Mathur_0-1715225314530.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
AndyEagleton
Frequent Visitor

Median = SUMX(VALUES(Data[ProductionLap]), CALCULATE(MEDIAN(Data[Time])))

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors