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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AtchayaP
Helper V
Helper V

Dax

 I am getting error , can I know this is right or not. Can you suggest dax for this 16487409200804958174521434841348.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AtchayaP ,

 

Eyelyn9_0-1649127960904.png

May I know what this means—— "average of a text"? Generally speaking, Average/ Sum is reasonable for Number type.

As your screeshot shown, your product family is like "xxx,yyy,aaa",  which to my knowledge is not meaningful to get their average... So perhaps you mean the Count:

Measure = COUNTX(FILTER('Table', LOWER('Table'[status])="closed" && [type]="SC" && [Effort Time]<>BLANK()),[Product family])

Eyelyn9_1-1649128297623.png

 

Or if you are still confused about it,Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Best Regards,
Eyelyn Qin
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

2 REPLIES 2
Anonymous
Not applicable

Hi @AtchayaP ,

 

Eyelyn9_0-1649127960904.png

May I know what this means—— "average of a text"? Generally speaking, Average/ Sum is reasonable for Number type.

As your screeshot shown, your product family is like "xxx,yyy,aaa",  which to my knowledge is not meaningful to get their average... So perhaps you mean the Count:

Measure = COUNTX(FILTER('Table', LOWER('Table'[status])="closed" && [type]="SC" && [Effort Time]<>BLANK()),[Product family])

Eyelyn9_1-1649128297623.png

 

Or if you are still confused about it,Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

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

amitchandak
Super User
Super User

@AtchayaP , In AverageX, the filter should start in place of table name

 

example

CALCULATE(AVERAGEX(FILTER(NPS_Query,[NPS_Modified]<>0), [NPS_Modified]), DATESINPERIOD(DimDate[Date] ,LASTDATE(DimDate[Date] ) , -30, DAY ) )

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.