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
Peckle
Regular Visitor

Most Frequently Occurring Text / Aggregating String Values

Hi All, 

 

I'm having trouble finding out how I can portray the mode of a text/string value using DAX.

 

Below is a snippet of my data.

 

I want to be able to show the Audit result by Division based on the frequency of the result, 

 

E.g.

 

FP Division = A

P Division = A

G Division = A

 

 

Data.PNG

 

Any help on this!

 

Thanks

7 REPLIES 7
Anonymous
Not applicable

Hi @Peckle,

 

Just trying to understand your question. Do you need to see how many times a Division received A or AA in Audit?

@Peckle

 

Seeminlgy you need the most recurring audit for each division

 

Try this MEASURE

 

Measure =
VAR MaxCount =
    MAXX ( VALUES ( Table1[Audit] ), CALCULATE ( COUNT ( Table1[Audit] ) ) )
RETURN
    CONCATENATEX (
        FILTER (
            VALUES ( Table1[Audit] ),
            CALCULATE ( COUNT ( Table1[Audit] ) ) = MaxCount
        ),
        [Audit],
        ", "
    )

Thanks, this worked for me (after trying many other approaches!)

@Zubair_Muhammad

 

That's right. I want to display the most recurring audit for each division

 

Thanks I'll try this! 

Hi @Peckle,

 

Did you resolve your issue? If so, please kindly mark the corresponding reply as an answer. It will benifit others with relevant issues. If not, please feel free to ask. Smiley Happy

 

Thanks,
Xi Jin.

Hi @v-xjiin-msft

 

Thanks for reaching out!

 

Unfortunately, I couldn't get the second part of the syntax to return a value. 

 

Thanks

 

Hi @Peckle,

 

=> Unfortunately, I couldn't get the second part of the syntax to return a value. 

 

Did you get any error message? Could you please share us some screenshots about your issue if possible?

 

Thanks,
Xi Jin.

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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