Forum Discussion
asimpleman9to5
4 years agoFrequent Visitor
Filtering data before calculation
Hi all. From the screenshot shown above, I would like to filter the serial number first before proceeding to calculate the difference in the higest and lowest voltage within each serial number...
- 4 years ago
Hi,
I assume you want to create a calculated column.
Please check the below picture and the attached pbix file.
Diff calculated column = MAXX ( FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ), Data[Voltage] ) - MINX ( FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ), Data[Voltage] )
Jihwan_Kim
4 years agoSuper User
Hi,
I assume you want to create a calculated column.
Please check the below picture and the attached pbix file.
Diff calculated column =
MAXX (
FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
Data[Voltage]
)
- MINX (
FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
Data[Voltage]
)
asimpleman9to5
4 years agoFrequent Visitor
Thank you!