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
RAKNOW6994
New Member

Beginner here....Needing help with a measure.

I want to create a measure that totals only the REPORTED HOURS, when EI_STEPNUM = “20” and DESCRIPTION contains “AVA”.

 

141202403_1849519341862370_3992113326570027551_n.jpg

 

141516148_1849546031859701_9073092268855952144_n.jpg

 

Here is my attempt at writing the measure:
 
MEASURE = CALCULATE(SUM('VOL - Maximo Labor Transactions'[REPORTEDHOURS]),FILTER('VOL - Maximo Labor Transactions','VOL - Maximo Labor Transactions'[EI_STEPNUM]="20"),FILTER('Work Order Management','Work Order Management'[DESCRIPTION]=CONTAINS('Work Order Management','Work Order Management'[DESCRIPTION],"AVA")))
4 REPLIES 4
amitchandak
Super User
Super User

@RAKNOW6994 , is EI_STEPNUM is text or numeric ?

 

Please check datatype for all columns and changes

 

MEASURE = CALCULATE(SUM('VOL - Maximo Labor Transactions'[REPORTEDHOURS]),FILTER('VOL - Maximo Labor Transactions','VOL - Maximo Labor Transactions'[EI_STEPNUM]=20),FILTER('Work Order Management','Work Order Management'[DESCRIPTION]=CONTAINS('Work Order Management','Work Order Management'[DESCRIPTION],"AVA")))

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

The field is set up as text.  However, the values are all numbers, but I am not doing any calculations/math with them.  

RAKNOW6994_0-1611287434904.png

 

@RAKNOW6994 , this error is typically a datatype error. I Think contains with = is problem

Other options are containsstring , search, find

 

MEASURE = CALCULATE(SUM('VOL - Maximo Labor Transactions'[REPORTEDHOURS]),FILTER('VOL - Maximo Labor Transactions','VOL - Maximo Labor Transactions'[EI_STEPNUM]=20),FILTER('Work Order Management',CONTAINS('Work Order Management','Work Order Management'[DESCRIPTION],"AVA")))

 

or

MEASURE = CALCULATE(SUM('VOL - Maximo Labor Transactions'[REPORTEDHOURS]),FILTER('VOL - Maximo Labor Transactions','VOL - Maximo Labor Transactions'[EI_STEPNUM]="20"),FILTER('Work Order Management',CONTAINS('Work Order Management','Work Order Management'[DESCRIPTION],"AVA")))

 

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

I appreciate your feedback Amitchandak.

 

Hmmmm....
The second formula: MEASURE = CALCULATE(SUM('VOL - Maximo Labor Transactions'[REPORTEDHOURS]),FILTER('VOL - Maximo Labor Transactions','VOL - Maximo Labor Transactions'[EI_STEPNUM]="20"),FILTER('Work Order Management',CONTAINS('Work Order Management','Work Order Management'[DESCRIPTION],"AVA")))

It processed, but did not yield any results.  There are reported values with EI_STEPNUM which equal 20.  But for whatever reason, it is not totaling them.

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.