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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure for "Earned" returns wrong value

Hi,

 

I am new to Power BI, so apologies if I am doing something completely wrong.

 

I have a table in which each row is a project.

 

Each project has a column called "Phase" which has the following stages: "1. Lead","2. Opportunity", 3. Proposal Dev", 4. "Proposal Sent",..."7. Sold", "8. Cash Collected".

 

Each project also has "Client Budget".

 

I have made a simple measure called "Total Nominal Budget":

 

 

Total Nominal Budget = SUM('Unique Project Table'[Current Client Budget])

 

 

Now, I want to create a measure in which I can calculate the total "Earned", which is the "Client Budget" in which the "Phase" column has either "7. Sold" or "8. Cash Collected". I tried with the below measure, but it returns a wrong value:

 

 

Earned = CALCULATE('Unique Projects Data Model'[Total Nominal Budget],FILTER('Unique Projects Data Model', 'Unique Projects Data Model'[Phase] = "7. Sold" || "8. Cash Collected"))

 

 

What am I doing wrong here? I guess this should be quite straightforward..

 

1 ACCEPTED SOLUTION

My first guess to the issue would be that you're using a hidden table with no relation between the other tables.

Using Unique Projects Data Model instead gives me the result you mentioned

 

 

Total Nominal Budget = SUM('Unique Projects Data Model'[Current Client Budget])

 

 

 

 

View solution in original post

9 REPLIES 9
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

Try adding 'Unique Projects Data Model'[Phase] = "8. Cash Collected" instead of "8. Cash Collected"

 

 

 

Earned = CALCULATE('Unique Projects Data Model'[Total Nominal Budget],FILTER('Unique Projects Data Model', 'Unique Projects Data Model'[Phase] = "7. Sold" || 'Unique Projects Data Model'[Phase] = "8. Cash Collected"))

 

 

 

 

 

Anonymous
Not applicable

@Gordonliljit still returns a wrong value.

 

It seems that it simply returns the [Total Nominal Budget] although I am trying to filter by the specific "Phase".

Is it possible for you to share some sample data?

Anonymous
Not applicable

@Gordonlilj 

 

I am not sure how to share the file, shall I take screenshots of some of the tables/measures/others?

 

To share the file you would could use an online file sharing tool like onedrive or dropbox.

Though sharing the file would be better, screenshots should work fine as well

Forgot to ask but what is the expected value?

 

Anonymous
Not applicable

@Gordonlilj 

 

It should be 998.000 as of right now

My first guess to the issue would be that you're using a hidden table with no relation between the other tables.

Using Unique Projects Data Model instead gives me the result you mentioned

 

 

Total Nominal Budget = SUM('Unique Projects Data Model'[Current Client Budget])

 

 

 

 

Anonymous
Not applicable

@Gordonlilj 

 

And just like that it works 🙂

I must have confused myself with too many different tables.

 

This is my first time using Power BI to create a report so even the easy things can seem confusing to me

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors