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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculation with multiple conditions requiring AND / OR

Good morning Masters,
 
I am looking for some help finding out sales on criteria for the Non-Promo and then I can convert the Promo Sales. 
 
Total Non- Promo Sales  = CALCULATE([TY Dollars],filter('LOWES Dol Sales', [TY Avg Retail]>200),'FAMILY REFERENCE (quarterly)'[Family] = "Champion") - displays correct value ($18.8 MM)
 
End the end, I am trying to build something like -
Total Non- Promo Sales Filter = CALCULATE([TY Dollars],filter('LOWES Dol Sales', [TY Avg Retail]>200),'FAMILY REFERENCE (quarterly)'[Family] = "Champion") ||
CALCULATE([TY Dollars],filter('LOWES Dol Sales',[TY Avg Retail]>170), 'FAMILY REFERENCE (quarterly)'[Family]="Edgemere") ||
calculate([TY Dollars], filter('LOWES Dol Sales',[TY Avg Retail]>229), 'FAMILY REFERENCE (quarterly)'[Family]="Clean") -
 
When I wrote this, my result came on the card as "True".
 
If I can get values based on family and price point, it would be great. Your thoughts are appreciated as always. 
 
Power BI Help.PNG

 

2 ACCEPTED SOLUTIONS

If you change your original mesure from || to + does it work like you want?

Total Non- Promo Sales Filter =
CALCULATE (
    [TY Dollars],
    FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 200 ),
    'FAMILY REFERENCE (quarterly)'[Family] = "Champion"
)
+ CALCULATE (
	[TY Dollars],
	FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 170 ),
	'FAMILY REFERENCE (quarterly)'[Family] = "Edgemere"
)
+ CALCULATE (
	[TY Dollars],
	FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 229 ),
	'FAMILY REFERENCE (quarterly)'[Family] = "Clean"
)

View solution in original post

Anonymous
Not applicable

JD,

 

Thank you! It looks like it worked!! Adjusted the Promo formula to use the "less than" price point on those three. Now I can add the other families in with their price points for both measure! Have an awesome weekend!

 

Power BI 2nd Help.PNG

View solution in original post

4 REPLIES 4
jdbuchanan71
Super User
Super User

@Anonymous 

Couldn't you just do the following?

 

Non Promo $ = [Total Dollar Sales] - [Promo $]

That way if you need to make a modification to the [Promo $] calculation the [Non Promo $] will update at the same time.

 

 

Anonymous
Not applicable

Hi JD,

 

Thank you for your reply. But it only works with the Champion if I do it that way. I want to to filter on the other families which have different price points. So I don't know how to combine the filters so that when I select on a different family, it changes the values.

If you change your original mesure from || to + does it work like you want?

Total Non- Promo Sales Filter =
CALCULATE (
    [TY Dollars],
    FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 200 ),
    'FAMILY REFERENCE (quarterly)'[Family] = "Champion"
)
+ CALCULATE (
	[TY Dollars],
	FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 170 ),
	'FAMILY REFERENCE (quarterly)'[Family] = "Edgemere"
)
+ CALCULATE (
	[TY Dollars],
	FILTER ( 'LOWES Dol Sales', [TY Avg Retail] > 229 ),
	'FAMILY REFERENCE (quarterly)'[Family] = "Clean"
)
Anonymous
Not applicable

JD,

 

Thank you! It looks like it worked!! Adjusted the Promo formula to use the "less than" price point on those three. Now I can add the other families in with their price points for both measure! Have an awesome weekend!

 

Power BI 2nd Help.PNG

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors