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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
_iamsheinny
Frequent Visitor

Would like to ask regarding on POWER BI, I need to calculate only a distinct Order No

I would like to count distinct of Order number but when visualize in the table, Order No. can be still found in two category instead it should only be included in one category..

 

Table.png

 

On this table as you can see, it's okay on the total tally, but when breakdown to specific category it's not tally - it's over compared to total, since i believe some of the order no, where included on both category instead of only once..

Table2.png

5 REPLIES 5
_iamsheinny
Frequent Visitor

actually there are no relationship established, since it's from one table only...

_iamsheinny
Frequent Visitor

basically in power bi, i have an issue when i use category in matrix table....

FreemanZ
Super User
Super User

In your second table, what do you put to Values field?

Are all the mentioned columns (taker_name, On PT Flag, order_no, and dups)  from the same table?

actually this is the current situation.

I have an excel file to double check the data taht is in power bi..

 

in excel file, i have created a column to distinguish if each Order No. is distinct or Not.

 

in power bi, i just drag and drop the Order No. on the table and set it up in disticnt count.table_1.pngTable_2.png

name-order is many-many relationship, order-flag is one-many relationship?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.