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
michellefs_br
Helper I
Helper I

Grouping by User

I'm using this tutorial with SQL 2014 and AdventureWorks Database

I did exactly as it says on the tutorial, but when trying to create the chart, I click the Full Name and it shows a list of names and when I click on the 3 measures, sum, avg and count, it sums everything instead of showing it per person.

It should look like the first image, but it's showing as the second one

 

Capture.PNGCapture1.PNG

1 ACCEPTED SOLUTION

I figured what the problem was, on SalesPersonID, the column had only null values, I was meant to exclude them, but instead I selected all NULLs, so that's why the relationship wasn't working, I have excluded the NULLs and left all others and it's now working as it should.

Thank you all for your time in helping me out on this.

View solution in original post

7 REPLIES 7

Have you joined the sales table to the customer table using the customer ID, and then placed the customer name from the customer table into your matrix on the rows?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Capture2.PNG

So are you wanting to see sales rep names in your visualisations?  I can't tell from the image of the model if the sales rep table is correctly joined to the sales table. I suggest putting salesrep[fullname] on rows and then sales[territory id] beneath it on rows. If the first level is blank but you see all the data at the second level, then your columns are not matching for some reason. Maybe it is the wrong column. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

I figured what the problem was, on SalesPersonID, the column had only null values, I was meant to exclude them, but instead I selected all NULLs, so that's why the relationship wasn't working, I have excluded the NULLs and left all others and it's now working as it should.

Thank you all for your time in helping me out on this.

kazlik
Helper II
Helper II

Can you post the formula for those 3 measures.

Greg_Deckler
Super User
Super User

Sorry, not sure your link came through or some thing, to which tutorial are you referring?



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

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

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