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

Don'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.

Reply
Zarig
New Member

How to Get Sum Discount based on MIN MAX from multiple condition

Hi, Everyone 

I have struggle for some days. I want to compare may value that fullfil from min and max to get the discount. Here for discount table. 

Zarig_1-1667362887997.png

For the next one, if the value fullfil 2 min and max so the discount will be sum. For example the value is 65 it will get 2 discounts (1+2) so the discount will be 3. 

Actually I want to use measure so I can use filter in my report. For now I still use this measure

measure = IF(Table1[measure1] > MIN(Table2[MIN]) && Table1[measure1] < MAX(Table2[MAX),SUMX(Table2,[Discount]), 0)

And the value that I want compare is in another table. 

Thanks


 

 

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @Zarig ,

 

Have trouble to follow. Please share the expected result.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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