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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Get the value from Column

HI All,

 

i need the vaue which is repeating in the column.

 

Ex: from the below example Using DAX need to get the Value "5" for 2019 and Value "10" for 2018

 

image.png

 

Please let me know if you need more details on this.

 

REgards.

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

Please see the attached file

 

 

 

 

View solution in original post

7 REPLIES 7
AlB
Community Champion
Community Champion

Hi @Anonymous 

If I understand correctly you want the value with the highest number of appearances. If so,

1. Place Table1[Year] in the rows of a table visual

2. Place this measure in the visual:

Measure =
VAR AuxTable_ =
    ADDCOLUMNS (
        DISTINCT ( Table1[Value] ),
        "CountCol", CALCULATE ( COUNT ( Table1[Value] ) )
    )
VAR MaxAppearances_ =
    MAXX ( AuxTable_, [CountCol] )
RETURN
    SUMX ( AuxTable_, IF ( [CountCol] = MaxAppearances_, [Value], 0 ) )

 

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

   

Anonymous
Not applicable

Thanks. Year is alfready in Rows, could not follow, it will be great if you could share the Pbix fie,

 

REgards,

Hi @Anonymous 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

Please see the attached file

 

 

 

 

Thanks for the tip @Mariusz !

Mariusz
Community Champion
Community Champion

Hi @jmuniz,

 

No problem! 

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski

 

Mariusz
Community Champion
Community Champion

HI @Anonymous 

 

The column will be this.

Column = CALCULATE( MAX( 'Table'[Value] ), ALLEXCEPT( 'Table', 'Table'[Year] ) ) 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try this Measure

Max Value = MAX( 'Table'[Value] )

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.