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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anmolgan
Post Prodigy
Post Prodigy

Merge blank field in calculations?

Hi, I have 2 tables where I am making the relation with a whole number id column, below is the visual that i am trying to build but the problem is that I want to add -1,233.84 balance in all the payer types calculations, the column used for the relationship contains some null values and hence this amount is not getting summed up for all the payer types, is there any way I can add this calcualtion into all the payertypes calculations? The total is correct is just that way of represenation is incorrect for all those payer type.

 

PFA the below screenshot:

Screenshot (1).png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anmolgan , I do not see any reason why that number should add. Unless your calculation do not consider it.

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

@Anmolgan , I do not see any reason why that number should add. Unless your calculation do not consider it.

Greg_Deckler
Super User
Super User

Can you provide sample data and any formulas you have? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Do you want to add that balance equally across all of the payertypes or is it supposed to be distributed? 

 

Best method would be to fix the bad data that is causing the blanks.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I want to add the amount equally to all the payer types.

Sorry @Anmolgan , just so I am clear, you want to divide the number by the number of payer types and add that amount to each OR you want to add that amount to each of the payer types? Either way it is adding an equal amount but it makes a big difference in the total. I am assuming the 1st option is what you want.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 1st option is the correct.

@Anmolgan - OK, is "pcc payments new" a measure or a column? If a measure, please post the formula for it. If a column, are you using a SUM aggregation?

 

This is going to be more difficult without understanding the source data.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler  yes its a calculated column am using below formula

 

Amount1 = CALCULATE(SUM('dw pcc_ar_transactions'[pcc payments new]), FILTER('dw pcc_ar_transactions', 'dw pcc_ar_transactions'[payer_id]= 0))
 
not sure what to replace on payer_id

OK, forgive me but I'm getting confused. Can you share some example source data so that I can verify what is going on? I don't need a lot, just enough to understand how you are getting to your current result.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.