Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I'm trying to create a column in the bottom table which displays the maximum value under "Count per BID" for every PartitionKey value. For example, i selected PartitionKey 70b...120, and the maximum Count per BID (see table above) is 61, so i'd like to display "61" in a column for that PartitionKey. Can someone help me with the formula? I'm stuck with Max3 and Max5, but the values are incorrect. Thank you.
max3 =
CALCULATE (
MAXx( 'LoRaBlePayload (2)', COUNTx('Key Measures', [Count per BID] )),
ALLEXCEPT (
'LoRaBlePayload (2)',
'LoRaBlePayload (2)'[PartitionKey]
)
)
Max5 =
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]
)
Solved! Go to Solution.
Hi,
Perhaps I am oversimplifying things, but this is my result:
MaxOfPartitionKey = maxx(SUMMARIZE('Table';'Table'[PartitionKey];'Table'[Identifier]);CALCULATE(COUNT('Table'[BID])))
As can be seen here:
Power BI file available here.
Please accept as solution if this is what you are looking for. Thanks.
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hi,
Perhaps I am oversimplifying things, but this is my result:
MaxOfPartitionKey = maxx(SUMMARIZE('Table';'Table'[PartitionKey];'Table'[Identifier]);CALCULATE(COUNT('Table'[BID])))
As can be seen here:
Power BI file available here.
Please accept as solution if this is what you are looking for. Thanks.
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
THank you Steve! This worked very well!