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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ShazzaGreen
Regular Visitor

Same Formula, different results

Hi all,

I have had to rebuild one of my reports due to some load issues and modelling enhancements. When I created my new report there are some calculated columns using DAX formula that I have copied exactly from the old report. For some reason, in the new model, they are returning no results. In the original model the formula worked perfectly. I have checked the formatting of all relevant columns and they're all formatted as text. Can anyone advise if I am missing something obvious or suggestions of what else I can check? Or maybe even another formula I could use to achieve the same results?

Basically I need the column in my BDoD Program table to return a count of rows from the BDoD QA table where the Project Id matches plus Audit Outcome = Major and Project Type = Design.

 

D_Major Errors =
CALCULATE
(COUNTROWS(
FILTER('BDoD QA','BDoD QA'[Audit Outcome]="Major")),
FILTER('BDoD QA','BDoD QA'[Project Type]="Design"),
ALL('BDoD QA'),'BDoD QA'[Project ID] = EARLIER('BDoD Program'[Project ID]))

 

 

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @ShazzaGreen 

Try this

D_Major Errors =

CALCULATE( COUNTROWS('BDoD QA'), 

FILTER(ALL('BDoD QA'),'BDoD QA'[Audit Outcome]="Major" && 'BDoD QA'[Project Type]="Design" && 'BDoD QA'[Project ID] = EARLIER('BDoD Program'[Project ID])))

If that doesn't work please share your data/PBIX file and your expected results.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi Phil,

Thanks so much for your response! The formula you've provided does exactly what I need it to in my original model and replicates the results I was getting with the original formula. Unfortuantely, it also returns just blanks cells in my new model (as with my formula). I would love to share the file but I work for an international company that subcontracts to another large company. The data in the file is confidential so I can't share it. There are 13 tables in the model, some of which connect directly to SharePoint lists for their data, so I don't know how I can 'cleanse' it with dummy data in order to share it with you?? 

You are spot on with the expected result already, it just doesn't return any result in the new model. There are no formula errors or anything showing, it's like it's just not finding any data meeting the formula criteria... but I know it's there...??

There is no direct relationship between the two tables, but they are indirectly related through a complex web of other related tables (including a date table).

It probably doesn't help much but I've added some screen shots of the old and new model showing formula results and the data relationships.

 

New Model ResultNew Model ResultNew Model RelationshipsNew Model RelationshipsOld Model ResultOld Model ResultOld Model RelationshipsOld Model Relationships

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.