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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
moezsajwani
Frequent Visitor

Count Rows of Values not correct

Hi,

 

I am trying to use the following measure for educational purpose.

 

ValuePromotionKey = COUNTROWS(VALUES(Sales[PromotionKey]))

 

There are only 3 promotion key in promotion table and only 3 of them are used in Sales Table. There should be no auto blank row created in this case. Relation of promotion table to Sales is 1 to many (unidirection).

 

The answer the above measure returns is 4 instead of 3. I believe VALUES is intended to remove duplicate values and only return unique which should be 3 in this case.

 

Any body can help me clarify the concept here please?

 

Regards,

M

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @moezsajwani,

 

By my test, I cannot reproduce your scenario with Values.

 

If it is convenient, could you share some data sample and your desired output so that we can help further investigate on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Users online (9,102)