Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have the following tables:
What I want to achieve is to get the Min and Max values of the entire sales column by branch. I already tried using calculated columns but I have performance issues since I am dealing with a million records.
Solved! Go to Solution.
Hi @powerbiguy_ ,
According to your description, you could create two measure (max and min ), the following formula to create a measure:
Min = CALCULATE(MIN('Income'[Sales]),ALLEXCEPT('Brancher',Brancher[Id]))
Max = CALCULATE(MAX('Income'[Sales]),ALLEXCEPT('Brancher',Brancher[Id]))
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @powerbiguy_ ,
According to your description, you could create two measure (max and min ), the following formula to create a measure:
Min = CALCULATE(MIN('Income'[Sales]),ALLEXCEPT('Brancher',Brancher[Id]))
Max = CALCULATE(MAX('Income'[Sales]),ALLEXCEPT('Brancher',Brancher[Id]))
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @powerbiguy_ ,
are the two tables connected with a relationship?
If yes, then just add the following measure to a table with the branches:
Min Sales = MIN(Income[Sales])
For Max the same with the MAX function.
Yes, but I failed to mention above that I have a slicer for the year and it affects the result.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |