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
Allan77R2V1
Helper II
Helper II

Complicated IF Statement

I have this for a new column

 

Total = IF('Credit Balance'[Azure Service Commitment]="Ending Balanace",'Credit Balance'[Value]+LOOKUPVALUE(Trueups[Applied Credits],Trueups[Date],'Credit Balance'[Date (bins)]))
 
This isnt failing for creating the column but the column is all blanks. 
 
In table Credit Balance I am tryhing to find all rows in column Azure Service commitment that = Ending Balance, then in the same row add the number from the Value column to
 
this is where it gets confusing
 
In that same row I want to  match the date in Date(Bins) column with Date column in the Trueups table an then add it the bold Value in the above paragraph.
 
Here is a smple of the Credit Balance Table
 
Azure Service CommitmentValueDate (bins)
Beginning Balance$50.2018-09-01
Purchased Credits$10.2018-09-01
Adjustments$22.2018-09-01
Utilized ( subtracted from balance)$400.2018-09-01
Ending Balance$100.2018-09-01
 
Here is a sample ot Trueup table
 
DateApplied Credits
2018-09-01$6000.44
 
Any ideas whe my formula produced all blank cells
 
What I want to have is the following result
 
Azure Service CommitmentValueDate (bins)Total
Beginning Balance$50.2018-09-01 
Purchased Credits$10.2018-09-01 
Adjustments$22.2018-09-01 
Utilized ( subtracted from balance)$400.2018-09-01 
Ending Balance$100.2018-09-016100.44
 

 
1 ACCEPTED SOLUTION

Wow, cant believe that, thanks!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Looks like you spelt Balance wrong in your DAX formula.  You wrote Balana.ce

Wow, cant believe that, thanks!

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.