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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
MattAllington
Community Champion
Community Champion

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.
I will not give you bad advice, even if you unknowingly ask for it.

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 will not give you bad advice, even if you unknowingly ask for it.

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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