Power Query data model, time summed showing all the same

greegan

Well-known Member
Joined
Nov 18, 2009
Messages
643
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am new to data models but the relationship doesn't seem to be an issue, I'm summing time in my columns and each columns appears to have the same issue.
The time format isn't an issue. What I'm having a strange problem with is that the summed amount is the same for the whole column and this is happening with each column where I have the time summed for each agent of my call center.
Is this enough information for someone to possibly steer me in the right direction?


-- g
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi

You can't actually create a aggregated calculated column in DAX (e.g SUM, AVERAGE etc.). Calculated columns understand "row context" but are useless for aggregations.

You have to create a DAX Measure which you will then be able to manipulate in your Pivot table.

So I've mocked up a table displaying "Agent" and "Time".

The data model view looks like this:

1652870595756.png


In Excel, your Pivot Tables would look like this. You can see that the calculated column produces gibberish which a well designed measure is accurate.

1652870652170.png


Obviously, this is a simple use of a measure. The complexity that can be employed is huge.

I hope that helps you understand the data model a bit better. It's all conceptual!

Martin

ps - This isn't a paid for commercial - honest!! I have nothing to do with the people in question, but I found the Udemy course "Microsoft Excel: Business Intelligence w/ Power Query & DAX" from Maven Analytics really helpful when I started to get my head around this stuff. I think they're doing an extra special offer at the moment.
 

Attachments

  • 1652870333577.png
    1652870333577.png
    56.1 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,223,666
Messages
6,173,673
Members
452,527
Latest member
ineedexcelhelptoday

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top