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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
In my table I have columns DBA which is a list of customer names, and then NET_SALES.
I created the measure: Net_Sales(m) =
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Net Sales measure =
VAR _netsales =
SUM ( Data[net_sales] )
RETURN
IF ( ISBLANK ( _netsales ), 0, _netsales )
RANK function (DAX) - DAX | Microsoft Learn
Rank net sales measure =
RANK (
SKIP,
ALL ( Data[customer_name] ),
ORDERBY ( [Net Sales measure], DESC )
)
I created a MaxRank measure
Do you have a solution on how to create the last measure where it looks at the Rank net sales measure and evenly divides the results into four quadrants based ona descening order? So if there's 100 rows, the first 1-25 rows that would have the highest net sales would be labeled as Quad 1, 26-50 as Quad 2, 51-75 as Quad 3, and 76-100 as Quad 4.
Hi,
Please check the below picture and the attached pbix file if it suits your requirement.
expected result measure: =
VAR _all =
COUNTROWS ( ALL ( Data[customer_name] ) )
VAR _rank = [Rank net sales measure]
RETURN
IF (
HASONEVALUE ( Data[customer_name] ),
SWITCH (
TRUE (),
DIVIDE ( _rank, _all ) <= 0.25, 1,
DIVIDE ( _rank, _all ) <= 0.5, 2,
DIVIDE ( _rank, _all ) <= 0.75, 3,
4
)
)
I've used a solution like this before and ran into the same issue I see here. Customer's F-S are grouped as 2, where F-K or F-I should be 2, and then K-S or I-S should be grouped as 3. So that we have four groupings evenly split or as close to evenly split.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Net Sales measure =
VAR _netsales =
SUM ( Data[net_sales] )
RETURN
IF ( ISBLANK ( _netsales ), 0, _netsales )
RANK function (DAX) - DAX | Microsoft Learn
Rank net sales measure =
RANK (
SKIP,
ALL ( Data[customer_name] ),
ORDERBY ( [Net Sales measure], DESC )
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 17 | |
| 12 |