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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Raul
Post Patron
Post Patron

Strange measure

Hello,

I have this table:

 

Img.png

The image shows 3 rows of the 12 total rows.

 

where [Concepte FAC] and [Cost] are two fields of a table (Table1) and TempCOST and TempFACTU are two measures:

TempCOST = CALCULATE(Table1[Cost];Table1[Tipus]="A";ALL(Table1[Concepte FAC])) -> It's CORRECT in the table

TempFACTU = CALCULATE(Table1[Amount];Table1[Tipus]="A";ALL(Table1[Concepte FAC])) -> It's WRONG in the table, but the total of the column it's correct.

 

I need that the column TempFACTU show the same value for each row with the total of the column, that is 2.880,19, like shows the column TempCOST. What is wrong in the formula of the measure?

 

Thank you very much.

2 REPLIES 2
Greg_Deckler
Super User
Super User

Would need sample sample/example source data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Strange meaaaaaaasure, bum bum bum bum bum bum bum, strange meaaaaaasure, bum bum bum bum bum bum bum...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Ok @Greg_Deckler, I explain more.

I have this tables in the data model:

Tabla.JPG

And I add a new column in the visualization to complicate it:

T1.png

And a new measure:

Rep = (SUM(Table1[Cost]*TempFACTU)/Temp[COST])

 

To obtain this results:

 

Final.JPG

Which are the correct formula to the TempCOS, TempFACTU and Rep measures?

Thank you.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors