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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Formula help

Hello everybody,

 

im looking for a measure that can do the following.

If column A contains 0 and Column B contains 1 then show me the cost that is stored in Column C.

 

i tried filters but that didnt give me the right outcome. Can somebody help me with this.

 

Kind regard,

Charaf

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

calculated column= if(Table[A] = 0 && Table[B] = 1;Table[C]; blank())

measure = calculate(sum(table[c];Table[A] = 0,Table[B] = 1))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

You didn't specifiy what your measure should do if just A is 0 or just B is 1. 

Nor did you specify what it should do if the condition is false. This should work though:

measure = if(Table[A] = 0 && Table[B] = 1;Table[C]; Table[A])

Anonymous
Not applicable

it most show the cost that is in another column. if it not match the value, dont show the cost.

 

@Anonymous  thanks for your helping hand.

 

Anonymous
Not applicable

calculated column= if(Table[A] = 0 && Table[B] = 1;Table[C]; blank())

measure = calculate(sum(table[c];Table[A] = 0,Table[B] = 1))

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.