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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dax Calculation

Hi,

 

I am having trouble writing the calculation below and keep running into errors.

 

(SUM [OH TTL U RTL] WHERE [J RETAIL FH FIRST/FURTHER] = "FIRST" OR "FURTHER")*[OH TTL AUC].

 

 

1 ACCEPTED SOLUTION

@Anonymous 

Not sure if I properly understand the requirement. Is something like:

=
SUMX (
FILTER ( 'Table', 'Table'[J RETAIL FH FIRST/FURTHER] IN { "FIRST", "FURTHER" } ),
[OH TTL U RTL] * [OH TTL AUC]
)

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Thank you that worked for me!

tamerj1
Super User
Super User

Hi @Anonymous 

are you trying to create a measure or a calculated column? 

Anonymous
Not applicable

A measure

@Anonymous 

Sorry but you mean to say

(SUM [OH TTL U RTL] WHERE [J RETAIL FH FIRST/FURTHER] = "FIRST" OR "FURTHER")*SUM([OH TTL AUC]).

 

Anonymous
Not applicable

I am looking for how to write that in dax.  That is not the calculation I am using.

@Anonymous 

Not sure if I properly understand the requirement. Is something like:

=
SUMX (
FILTER ( 'Table', 'Table'[J RETAIL FH FIRST/FURTHER] IN { "FIRST", "FURTHER" } ),
[OH TTL U RTL] * [OH TTL AUC]
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.