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
Ashishvca
Frequent Visitor

Calculated measure not working after publishing

Hi

 

I am using calculated measure which are working fine on desktop but not working after I publish them. 

Here is the formula I am using 

Direct Selling = -(CALCULATE(sum(Consolidated[USD]),(Consolidated[Account]="Direct_Selling")))
 
This is the error I am getting

Fields that need to be fixedSomething's wrong with one or more fields: (Consolidated) Direct Selling, (Consolidated) Direct Marketing, (Consolidated) Local ID, (Consolidated) Strength

Please try again later or contact support. If you contact support, please provide these details.Hide details
 
Need help in fixing this

Thanks in advance.



1 ACCEPTED SOLUTION
edhans
Super User
Super User

You have more parentheses than you need. Two extra sets. Try this:

Direct Selling =
- CALCULATE(
    SUM( Consolidated[USD] ),
    Consolidated[Account] = "Direct_Selling"
)

If that fails, then I'd need to see the model image.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Ashishvca ,

 

Have you changed field names or table name in Power BI Desktop file? To fix this, please delete your Service dataset and then re-publish your pbix file.

 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

You have more parentheses than you need. Two extra sets. Try this:

Direct Selling =
- CALCULATE(
    SUM( Consolidated[USD] ),
    Consolidated[Account] = "Direct_Selling"
)

If that fails, then I'd need to see the model image.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.