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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kadapavel
Helper II
Helper II

Calculate daily max result of minute level measure(s)

Hi

I have a measure which calculates a temperature delta between two sensors.

Measurement is taken once a minute, therefore I am interested in delta in the minute level.

 

My table has only 3 columns

PartitionKey     Value   TimeStamp

 

Currently measure is like that

Temperature differene B vs A = Max('RawDataCombine'[B_TEMP_NTC_C]) - Max('RawDataCombine[A_TEMP_NTC_C])


When I'm on minute level result is valid, but when I drill up, then it is agregated delta between some low and high points in hour, or day...  

 

It would be great to fix calculation of mesure to minute leven and then use another measure to look results on different level of Time hierarchy.

BR

Pavel

 

 

 

I would like to have another measure which would show max of minute level measure.

 

This way I would show what is the temperature delta in  day/week/month level and then drill through to the time when the minute measure had highest level.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @kadapavel,

 

Nope, current measure formula will return different value based on hierarchy level, if you drill down or drill up, it will change the summary mode of records so formula cannot get previous result.

 

You need to add conditions to check row contents level and write specific calculation formula with filter to calculate on particular hierarchy level.

 

I'd like to suggest you refer to following link which told about handling hierarchy level calculation.

Clever Hierarchy Handling in DAX

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @kadapavel,

 

Nope, current measure formula will return different value based on hierarchy level, if you drill down or drill up, it will change the summary mode of records so formula cannot get previous result.

 

You need to add conditions to check row contents level and write specific calculation formula with filter to calculate on particular hierarchy level.

 

I'd like to suggest you refer to following link which told about handling hierarchy level calculation.

Clever Hierarchy Handling in DAX

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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