Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Aggregate: Get value that occurs most often

Hi all, I'm fairly new to Power BI and I am now trying to aggregate a table where there is a text column with different entries within a group and I want to get the entry that occurs most often (i'l...
  • AlB's avatar
    AlB
    7 years ago

    Anonymous 

    It sounds like you'd be able to do that with what you have at the beginning already. Where does the most frequent type come into the picture? I'm not sure I fully understand, but if you want the contents that we produced before in the visual in an actual table, you can create a calculated table as below, where [Measure] is the measure we created above and Table1 is the original table: 

    NewTablee =ADDCOLUMNSS (
        DISTINCT (Table11[LocationID] );
        "Revenue"; CALCULATE ( SUM (Table11[Revenue] ) );
        MostFrequentTypee"; [Measure]
    )