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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Finding a sum of a column by date and another column using LookUpValue

tgap.PNG

The table that I want is highlighted and the table I currently have is unhighlighted. 

2 ACCEPTED SOLUTIONS
JarroVGIT
Resident Rockstar
Resident Rockstar

Create a calculated table like this:

Table = SUMMARIZE(Table, 'Table'[Date], 'Table'[Machine], SUM('Table'[duration]))

That will give you the desired result as a calculated table.

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Sorry that is what you get with posting untested DAX 😛

Table = SUMMARIZE(Table, 'Table'[Date], 'Table'[Machine], "Time", SUM('Table'[duration]))

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
JarroVGIT
Resident Rockstar
Resident Rockstar

Create a calculated table like this:

Table = SUMMARIZE(Table, 'Table'[Date], 'Table'[Machine], SUM('Table'[duration]))

That will give you the desired result as a calculated table.

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

When I input that into a new table under the modeling tab I get "Function SUMMARIZE expects a column name as argument number 4". Any idea how to fix this?

Sorry that is what you get with posting untested DAX 😛

Table = SUMMARIZE(Table, 'Table'[Date], 'Table'[Machine], "Time", SUM('Table'[duration]))

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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