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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

Using a column as a conditional in a measure

Hey everyone, hope everyone is alright!

 

Basically I have three tables (A dimension table, and two others), what I need to do is create a conditional so I can sum one of the two tables (lets call them sales 1 and sales 2).

 

Here's a mockup of what I want to do, but it doesn't work: IF(Dimension[State]=A,SUM(Sales 1[Sales]),SUM(Sales 2[Sales]))

 

I have some specific information only on State A that other states can't sum on it.

1 ACCEPTED SOLUTION

Hi @Henrique_Quint 

Please find the PBIX file as an attachment. Please check the measures and data model.

PijushRoy_0-1733164016039.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @Henrique_Quint 

It depends on data model, can you please share the data model image?
If possible, share sample data for all table as excel format




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Hi, PijushRoy! I couldn't attach an excel file here, but here goes an image of a sample that I made, that's basically everything I'm using on this problem. Hope that it will be enough, is there anything more that you need?

Henrique_Quint_0-1733162916235.png

 

Hi @Henrique_Quint 

Please find the PBIX file as an attachment. Please check the measures and data model.

PijushRoy_0-1733164016039.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.