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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abhishek_2593
Helper II
Helper II

Count of values

Hi,

 

I have a table which has products with multiple values/variable, i would like to count the sum of these values/variable for each product. Can someone please help with this measue?

abhishek_2593_0-1656497270976.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@abhishek_2593 , a new column

 

= Calculate(distinctcount(Table[Websites]), filter(Table, [Product] =earlier([Product]) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @abhishek_2593 

If you need a measure, please try  formula like:

Result1 =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Product] = MAX ( 'Table'[Product] ) )
)

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@abhishek_2593 , a new column

 

= Calculate(distinctcount(Table[Websites]), filter(Table, [Product] =earlier([Product]) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.