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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
maddypena07
Frequent Visitor

Nested FIXED LOD (tableau) to dax

Hello all! My company is migrating to powerBI from Tableau and I've been trying to replicate some calculations. There is a fair amount of calculations that use LOD due to the level of detail of the databases and figures that can only be joined at a certail level. One of them is to calculate the Uptime of a machine first by the manchine itself and the weeks selected and then the sum of those values at week level, like this:

maddypena07_0-1698349225753.png

So my expected results are, for the inner fixed: 

maddypena07_1-1698349461070.png

Whis this calc:

CALCULATE(
    sum('table'[Uptime (hrs)]),
    ALLEXCEPT('table', 'table'[Machine],'table'[ISO Week]))
 
maddypena07_2-1698349659929.png

 

I'm able to replicate the inner fixed, but I'm unable to replicate the outer Fixed that takes the previous result and stablish it as a result for each machine.

I really appreciate your time and help!
 
Edit:
Dummy data and .pbix file
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @maddypena07 ,

I updated your sample pbix file(see the attachment), please check if that is what you want. You can create a measure as below to get it:

Sum of Uptime by Week = SUMX ( ALLEXCEPT ( 'dummt', 'dummt'[ISO Week] ), [Uptime (hrs)] )

vyiruanmsft_0-1698640308970.png

Best Regards

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@maddypena07 I don't really speak Tableau so much of the jargon is going over my head. What is it that you are having an issue with spefically. As in, which of the numbers you are trying to create is wrong? Everything looks good in your 2 images.



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...

Thanks Greg!

I apologize for the confussion!. The final result of the tableau calculation (first image) should be:

maddypena07_0-1698354229645.png

the value 4883 on every row. I separated both FIXED results to try to resolve it steb by step.

 

I can get to the first part of the calculation (Inner fixed), the 

{fixed [Weeks],[MachineID]:
sum([Uptime (hrs.)])}
And I get the results as the last image, but I don't know how to get that final result as a value for every row on the table.

Anonymous
Not applicable

Hi @maddypena07 ,

I updated your sample pbix file(see the attachment), please check if that is what you want. You can create a measure as below to get it:

Sum of Uptime by Week = SUMX ( ALLEXCEPT ( 'dummt', 'dummt'[ISO Week] ), [Uptime (hrs)] )

vyiruanmsft_0-1698640308970.png

Best Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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