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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Wong calculation with calculate function (deja vu?)

Hi!

I have a problem with the calculate dax function, and i am pretty sure it is about filering within the formula, but since i am not used to DAX, i can't figure out how to do it right. This is for excel, but the problem is applicable in PBI as well. Wht would be the correct formula to achieve what i need.

 

i copy paste the presentation i made

 

YannLG_0-1694412530994.png

YannLG_1-1694412555464.png

YannLG_2-1694412565660.png

YannLG_3-1694412576219.png

 

 

thanjks for your help!!

2 REPLIES 2
Anonymous
Not applicable

Thanks for your help Chirag.

I have the following error: This formula is invalid or incomplete: 'The column 'TeamsComposition[capa]' either doesn't exist or doesn't have a relationship to any table available in the current context.'.

I think this is because the table TeamsComposition is not directly linked to FactTable (that's why I have to use calculate with the crossfilterfuntion), see the relationship bellow. I am attaching my file as well.

YannLG_0-1694419830694.png

Here is the link to the file

 

https://docs.google.com/spreadsheets/d/10mP-bUFeAbMSHAIRuUUUWvw-Kq8fABnx/edit?usp=drive_link&ouid=11...

 

Thanks

ChiragGarg2512
Solution Sage
Solution Sage

In the DAX expression, the expression is written as product of sums instead it should be sum of products.

 

It should be Calculate(sumX(FactTable,FactTable[Workload]*related(TeamsComposition[capa])),.....)  instead of Calculate(sum(FactTable[Workload])*sum(TeamsComposition[capa]), .....).

Only possible if the relationship is one to many.

 

If the problem continues, pleae share sample data.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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