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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.