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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
satish_pb
New Member

Calculate sum using text wild characters.

I am trying to calulate a measure to sum the quantity of incidents where the text contains VFF.

 

The query i am using 

New VFF = calculate (sum(Query1[QTY]),Query1[Categorized_Disposition] = "*VFF*")
 
I am getting 0 hits. But i know if have text starting with VFF.
2 ACCEPTED SOLUTIONS
RobbeVL
Impactful Individual
Impactful Individual

Hi There,

DAX doesnt use Operators like SQL, it only recognizes the * as text.

try this:

New VFF = calculate (sum(Query1[QTY]), LEFT(Query1[Categorized_Disposition],3) = "VFF"



View solution in original post

TeigeGao
Solution Sage
Solution Sage

Hi @satish_pb ,

We can use the FIND() function to get the list of quantity of incidents where the text contains VFF, please refer to the following DAX query:

Measure =
SUMX (
    'Table',
    IF (
        FIND ( "VFF", 'Table'[Categorized_Disposition], 1, BLANK () ) = BLANK (),
        0,
        'Table'[QTY]
    )
)

The result will like below: 

PBIDesktop_aCoD5tZjto.png

Best Regards,

Teige

View solution in original post

2 REPLIES 2
TeigeGao
Solution Sage
Solution Sage

Hi @satish_pb ,

We can use the FIND() function to get the list of quantity of incidents where the text contains VFF, please refer to the following DAX query:

Measure =
SUMX (
    'Table',
    IF (
        FIND ( "VFF", 'Table'[Categorized_Disposition], 1, BLANK () ) = BLANK (),
        0,
        'Table'[QTY]
    )
)

The result will like below: 

PBIDesktop_aCoD5tZjto.png

Best Regards,

Teige

RobbeVL
Impactful Individual
Impactful Individual

Hi There,

DAX doesnt use Operators like SQL, it only recognizes the * as text.

try this:

New VFF = calculate (sum(Query1[QTY]), LEFT(Query1[Categorized_Disposition],3) = "VFF"



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.