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
anamika
Frequent Visitor

Dax Query

Hi,

I am faceing one issue with dax query which is written in DAX Query application. 

dax query is -
EVALUATE
ADDCOLUMNS (
    SUMMARIZECOLUMNS (
        'Dim MWBEProgram'[MWBEProgramName],
        FILTER ( 'Fact Contract', 'Fact Contract'[MWBEProgramID] <> BLANK () ),
       
        FILTER ( 'Fact Contract', 'Fact Contract'[ContractNumber] = "1234" )
    )
    ,
    "STATUS", IF ( 'Dim MWBEProgram'[MWBEProgramName] = "Non M/WBE", "NON M/WBE", "M/WBE" )
)

So, getting output like this:

Output.PNG

 

Is it possible to get only 'STATUS' Column?

5 REPLIES 5
d_gosbell
Super User
Super User

Can you clarify what your issue is? I can't see any output in this post, is there an error or unexpected data in the results?

 

My output is :

 

Output.PNG
Is it possible to get only "STATUS"Column?


@anamika wrote:

Is it possible to get only "STATUS"Column?


You can, the question does not make a lot of sense to me as I can't see how this column will make sense on its own, but you could use SELECTCOLUMNS to just return the STATUS column

 

eg

 

EVALUATE
SELECTCOLUMNS(
ADDCOLUMNS
 (
    SUMMARIZECOLUMNS (
        'Dim MWBEProgram'[MWBEProgramName],
        FILTER ( 'Fact Contract''Fact Contract'[MWBEProgramID] <> BLANK () ),
       
        FILTER ( 'Fact Contract''Fact Contract'[ContractNumber] = "1234" )
    )
    ,
    "STATUS"IF ( 'Dim MWBEProgram'[MWBEProgramName] = "Non M/WBE""NON M/WBE""M/WBE" )
)
"STATUS", [Status]
)

Getting error with the given query.


@anamika wrote:

Getting error with the given query.


What is the error message?

 

I can't run your exact query as I don't have access to your model, but I've run similar queries with this pattern and they work fine.

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.