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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
afaro
Helper III
Helper III

Same value for drill downs

I have a sales fact table and a sales order dimension table. 

There is a 1-many relationship between sales order dimension table to the sales fact table based on the sales order number. 

The sales order dimension table contains the customer name for each sales order. 

 

I wrote a measure 

Sales Orders = COUNTROWS([Sales]) 

Then in the Sales fact table, I have a column which is the item code (not present in sales order dim) which i put as x axis of bar chart. Below this, I put the customer from the sales order dim. 

The first visualization with sales vs item code works fine. However, when I drill down item to customers, it shows same value for each customer. How do I fix this and what might be wrong? 

Thank you in advance. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @afaro 

Check the relationship among the tables, if the relationship is right, that may be the case that the number of customers under the item is the same, and you can check whether the number of customers under a certain item is the same.You can refer to the sample I provided.

I create three tables:customer and sales

Customer

vxinruzhumsft_1-1709184419823.png

Sales

vxinruzhumsft_2-1709184437010.png

The relationship

vxinruzhumsft_5-1709185083099.png

I create a measure

 

Measure = COUNTROWS(Sales)

 

Then put them to the visual when I drill down it will diaplay 1 for each customer, after verify, the result is right, becasue some customer only has 1 counts.

vxinruzhumsft_4-1709184615902.png

2.If the result verification is incorrect,try the following measure

Sales Orders =
CALCULATE (
    COUNTROWS ( sales ),
    CROSSFILTER ( dimensiontable[order number], facttable[order number], BOTH )
)

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @afaro 

Check the relationship among the tables, if the relationship is right, that may be the case that the number of customers under the item is the same, and you can check whether the number of customers under a certain item is the same.You can refer to the sample I provided.

I create three tables:customer and sales

Customer

vxinruzhumsft_1-1709184419823.png

Sales

vxinruzhumsft_2-1709184437010.png

The relationship

vxinruzhumsft_5-1709185083099.png

I create a measure

 

Measure = COUNTROWS(Sales)

 

Then put them to the visual when I drill down it will diaplay 1 for each customer, after verify, the result is right, becasue some customer only has 1 counts.

vxinruzhumsft_4-1709184615902.png

2.If the result verification is incorrect,try the following measure

Sales Orders =
CALCULATE (
    COUNTROWS ( sales ),
    CROSSFILTER ( dimensiontable[order number], facttable[order number], BOTH )
)

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.