cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kumarsandeep Frequent Visitor
Frequent Visitor

Create measure by using two measure with condition

Hi,

I have two measure NettingExp and NonNettingExp. I want to show these value in single column. Like'ResultData'[Status]="Netting" then show NettingExp measure else show NonNettingExp measure. 

 

Visual Example:-

PartyName     Expense(Either NettingExp or NonNettingExp)

 

I tried to add calculated column but not able to create as showing circuler dependency error. Any way to create measure like 

ExpenceMeasure = IF(ResultData'[Status]="Netting", NettingExp, NonNettingExp) ???

 

Please advise on this !!  

1 REPLY 1
JosefPrakljacic Established Member
Established Member

Re: Create measure by using two measure with condition

Hello Kumar,

 

without sample data and sketching your model, we can only guess.

 

It is no shame to publish sample data and would help those who want to help you.

 

So may I ask you for sample data?

 

Here is a good article about how to avoid circular dependencies -> https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

 

BR,

Josef

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 323 members 3,281 guests
Please welcome our newest community members: