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
bdanielx
New Member

Table Drill Down Includes Unrelated Records

When I drill down on row in a Matrix, I get the detail that I want, but also a bunch of other records unrelated to the drill-down field in the result. Is this a data relationship issue, or is there something else I am missing?

 

Here is the higher level

 

2017-12-26 20_59_43-Sales Dashboard v2 - Power BI Desktop.jpg

 

Here is the drill down (note unrelated items at the bottom of the matrix):

 

2017-12-26 21_00_13-Sales Dashboard v2 - Power BI Desktop.jpg

 

1 ACCEPTED SOLUTION

Hi,

 

The reason you have rows showing with no sales data is that there are two growth columns in that visual which are returing 100%.  Try these revised messures and those rows will disappear

 

TY Sales % Comp = IF(AND(ISBLANK(SUM('Sales By Location'[TY Sales])),ISBLANK(SUM('Sales By Location'[LY Sales]))),BLANK(),SUM('Sales By Location'[TY Sales])/sum('Sales By Location'[LY Sales])-1)

 

TY Sales Unit % Comp = IF(AND(ISBLANK(SUM('Sales By Location'[TY Sales Units])),ISBLANK(SUM('Sales By Location'[LY Sales Units]))),BLANK(),(sum('Sales By Location'[TY Sales Units])/sum('Sales By Location'[LY Sales Units]))-1)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

 

Looks like a relatioship issue.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks. Here it is.

 

https://drive.google.com/open?id=1LHRtxlKP_wJTupsbyujZhMJVxlMpIWNa

 

The matrix is on the Sales Detail page.

Hi,

 

The reason you have rows showing with no sales data is that there are two growth columns in that visual which are returing 100%.  Try these revised messures and those rows will disappear

 

TY Sales % Comp = IF(AND(ISBLANK(SUM('Sales By Location'[TY Sales])),ISBLANK(SUM('Sales By Location'[LY Sales]))),BLANK(),SUM('Sales By Location'[TY Sales])/sum('Sales By Location'[LY Sales])-1)

 

TY Sales Unit % Comp = IF(AND(ISBLANK(SUM('Sales By Location'[TY Sales Units])),ISBLANK(SUM('Sales By Location'[LY Sales Units]))),BLANK(),(sum('Sales By Location'[TY Sales Units])/sum('Sales By Location'[LY Sales Units]))-1)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes, that solved my issue! Thank you.

 

But, I don't understand why the other items would show on the drill down when there is no data relationship to the drill down field?

 

Also, by making these lines blank in the conditional statement, why don't the items with the blank result still show in the report with just a blank field?

You are welcome.  I do not understand the meaning of your other 2 questions.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Well, the drill down field was the sub-category group 2.00-QT Poinsettia, but their is no database relation between the extra items without data that displayed in the table and the 2.00-QT Poinsettia sub-category in the data tables, that is, those items belong to different sub-category group. I would assume that since they are related to a different sub-category group that they would be excluded from the results when I drill down.

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.