Forum Discussion
Help with getting the maximum value from calculated table containing measure column
- 6 years ago
Hi miguelsus2000 ,
Miguel, I tested your sample data. Maybe the following formula can help you. For why you get the sum value, I think it is caused that my sample is too simple. It is filtered by other columns in your actual data.
MAXX = MAXX ( SUMMARIZE ( FILTER ( ALLSELECTED ( 'LoRaBlePayload (2)' ), 'LoRaBlePayload (2)'[Content.BeaconIdentifier] IN FILTERS ( 'LoRaBlePayload (2)'[Content.BeaconIdentifier] ) ), 'LoRaBlePayload (2)'[Content.BeaconIdentifier], 'LoRaBlePayload (2)'[PartitionKey], "New", [Count per BID] ), [New] )Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi miguelsus2000 ,
As I know, we will get the result that you attached while changing MAXX to SUMX. If you just use my formula but get that, can you please share a simple dummy file that we can understand clearly?
Use function of SUMX
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Xue.
Yes, I am using MAXX, but the results look like SUMX, which i don't understand why. Are there any settings which cause MAXX to behave similar to SUMX? I think the formats are correct as well.
Attached is a sample file and also shows the table as it's shown.
| BeaconIdentifier | Created | CreatedTimeInSeconds | DevEui | Major | Minor | PartitionKey | RowKey | Rssi | Tenant | Timestamp |
| 0000-10AB4 | 2019-12-16T22:39:19.906Z | 1576557559 | 70b3d5a4d3100034 | 100 | 13360 | 70b3d5a4d3100034 | 2.51826E+18 | -80 | Tenant1 | 2019-12-17T04:39:19.905Z |
| 0000-10ABV | 2019-12-16T22:39:19.906Z | 1576557559 | 70b3d5a4d3100034 | 100 | 13387 | 70b3d5a4d3100034 | 2.51826E+18 | -90 | Tenant1 | 2019-12-17T04:39:19.906Z |
| 0000-10ABW | 2019-12-16T22:39:19.906Z | 1576557559 | 70b3d5a4d3100034 | 97 | 13388 | 70b3d5a4d3100034 | 2.51826E+18 | -40 | Tenant1 | 2019-12-17T04:39:19.905Z |
| 0000-10ABW | 2019-12-16T22:38:19.868Z | 1576557499 | 70b3d5a4d3100034 | 97 | 13388 | 70b3d5a4d3100034 | 2.51826E+18 | -40 | Tenant1 | 2019-12-17T04:38:19.879Z |
This is the able view in POWERBI
- miguelsus20006 years agoHelper III
Hi Xue,
Does the info I provided help in any way? For some reason, i still cannot break down the 38 into 4 adn 34 you have?
Thank you...Miguel.
- v-xuding-msft6 years agoCommunity Support
Hi miguelsus2000 ,
Miguel, I tested your sample data. Maybe the following formula can help you. For why you get the sum value, I think it is caused that my sample is too simple. It is filtered by other columns in your actual data.
MAXX = MAXX ( SUMMARIZE ( FILTER ( ALLSELECTED ( 'LoRaBlePayload (2)' ), 'LoRaBlePayload (2)'[Content.BeaconIdentifier] IN FILTERS ( 'LoRaBlePayload (2)'[Content.BeaconIdentifier] ) ), 'LoRaBlePayload (2)'[Content.BeaconIdentifier], 'LoRaBlePayload (2)'[PartitionKey], "New", [Count per BID] ), [New] )Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- miguelsus20006 years agoHelper III
Hi Xue, Thank you very much this actually worked. The original calculation was indeed very simple/high level. I wanted to ask you, if I want to extract the partitionkey mostly used, can simply do a value lookup?
No worries if you're busy.
Thank you again!
Cheers,
M