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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @Suganya_Hemanth ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Customers table:
Products table:
Sales table:
1.Create a measure
Customer =
VAR max_sales = CALCULATE(MAX(Sales[Amount]), Products[Category] = "Bike")
RETURN
CALCULATE(
VALUES(Customers[Name]),
FILTER(
Sales,
Sales[Amount] = max_sales &&
RELATED(Products[Category]) = "Bike"
)
)
2.Final output
Best regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Suganya_Hemanth ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Customers table:
Products table:
Sales table:
1.Create a measure
Customer =
VAR max_sales = CALCULATE(MAX(Sales[Amount]), Products[Category] = "Bike")
RETURN
CALCULATE(
VALUES(Customers[Name]),
FILTER(
Sales,
Sales[Amount] = max_sales &&
RELATED(Products[Category]) = "Bike"
)
)
2.Final output
Best regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Suganya_Hemanth assuming your model is model similar to DAX.DO, please check link with example.
Adjust your table / columns name.
Proud to be a Super User!
Thanks to help in this.
Can i do the same without using Calculate Functions, ie by using variables.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 13 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |