Forum Discussion
total time for group values
Hi, I've been trying sum up total time for each group values and find the difference between group values, such as what was the total time from checking in to check out. I tried using summarize and calculation formula and the result is not correct. Please help!
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- Anonymous2 years ago
Hi cnoh ,
Do you need to get the difference between Check Out and Check In?
If so ,I did a test for your reference.
Please check this:
Measure = ABS( SUMX( FILTER( 'Table' , 'Table'[Room] = "Check In" ) , [Total Time] ) - SUMX( FILTER( 'Table' , 'Table'[Room] = "Check Out" ) , [Total Time] ) )
If I understand you wrongly, could you explain your needs in more detail?
Best Regards,
Sunshine Gu
3 Replies
- lbendlin
Super User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 - AnonymousNot applicable
Hi cnoh ,
Do you need to get the difference between Check Out and Check In?
If so ,I did a test for your reference.
Please check this:
Measure = ABS( SUMX( FILTER( 'Table' , 'Table'[Room] = "Check In" ) , [Total Time] ) - SUMX( FILTER( 'Table' , 'Table'[Room] = "Check Out" ) , [Total Time] ) )
If I understand you wrongly, could you explain your needs in more detail?
Best Regards,
Sunshine Gu
- cnohFrequent Visitor
Good morning! I'm so sorry for the delay response. Yes, it worked! Thank you so much for your help!