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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
VulcanPromance
Helper II
Helper II

Calculate Max not working

Hi.

 

I've just reshaped my datasets and I've created this table by merging my license table and my price table (the 3 righternmost columns)

Table Licenses
table1.png

 

Based on this table I can get this Visual
Help1.png

Most of these numbers are correct. The price was added with a dont summarize and the Cost is a measure that
Summarize Price (    Cost = SUM(Licenses[Price])     )

The count I get by counting Distinct Count of corprateID from the licenses table

Count = DISTINCTCOUNT(Licenses[CorporateID])
 
But When I remove the LicenseType column I want to see just the number for Max License within each BundelName

See preferred Result
help2.png
However, it aggregates all from Bundlename instead and the calculations on cost and count is all wrong.
2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @VulcanPromance ,

 

To create a measure as below.If it doesn't meet your requirement, kindly share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

countmax =
MAXX ( ALLEXCEPT ( yourtable, yourtable[Boundlename] ), [count] )
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

It contains confidential data.. I would have to create a sample and anonymize..

Meanwhile... your Measure just added a column full of '1's

 

I think the problem is the count measure.. Its a distinct count of all users(corporateid) regardless of license attached to it.. so for example the Facility Managment Bundle.. it contains 329 licenses, but only 258 distinct users. Im going to try to count it based on the licensetype instead of just counting distinct users..

 

Will send you link for anonymized data if it doesnt work 🙂

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors