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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ArtPriIi
New Member

Dax how to use column instead of measure

I am stuck here.  I want to use in this dax query "handled-interactions-vw[xxx]" instead of the measure [team avg csat1]. How would the dax query look like?

 

Team Avg  CSAT1 Latest Period =

IF( MAX('Period Selected'[Sort Order])= 1,

CALCULATE(

    [Team Avg  CSAT1],

    star_date_filter_vw[d_filter] in VALUES(DimSlicer[Measure1])

),

    [Team Avg  CSAT1]

)

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @ArtPriIi ,

Try the following DAX:

Team Avg  CSAT1 Latest Period =
IF(
    MAX('Period Selected'[Sort Order])=1,
CALCULATE(
    SUM('handled-interactions-vw'[xxx]),
    FILTER(ALL(star_date_filter_vw),'star_date_filter_vw'[d_filter] IN VALUES('DimSlicer'[Measure1]))),
    SUM('handled-interactions-vw'[xxx]))

If your expected results are not met, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

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

3 REPLIES 3
Anonymous
Not applicable

Hi  @ArtPriIi ,

Try the following DAX:

Team Avg  CSAT1 Latest Period =
IF(
    MAX('Period Selected'[Sort Order])=1,
CALCULATE(
    SUM('handled-interactions-vw'[xxx]),
    FILTER(ALL(star_date_filter_vw),'star_date_filter_vw'[d_filter] IN VALUES('DimSlicer'[Measure1]))),
    SUM('handled-interactions-vw'[xxx]))

If your expected results are not met, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

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

Greg_Deckler
Community Champion
Community Champion

@ArtPriIi You need to wrap your column in an aggregation like MAX, MIN, SUM, etc.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  How do I do that as i want those column as is. also 1 is a freetext field. is. I am not sure how the dax query would look like. I need some help on the dax qeury

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.