cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aditi11
Frequent Visitor

undefined

Hello team, I want to calculate

 

  • IMG_20221124_000322.jpg

 the length of the product description of only those products whose product color is NA.

Using ONLY string functions.

Thanks in advance. 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @aditi11 

 

Sample data:

vzhangti_0-1669258009030.png

Measure =
CALCULATE (
    COUNT ( 'Table'[Product] ),
    FILTER ( ALL ( 'Table' ), [ProductColor] = "NA" )
)

vzhangti_1-1669258071318.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @aditi11 

 

Sample data:

vzhangti_0-1669258009030.png

Measure =
CALCULATE (
    COUNT ( 'Table'[Product] ),
    FILTER ( ALL ( 'Table' ), [ProductColor] = "NA" )
)

vzhangti_1-1669258071318.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors