Forum Discussion

lipao255's avatar
lipao255
Frequent Visitor
4 years ago
Solved

Help creating a dax measure (excluding a specific column from table)

I'm practicing my Power BI skills. I've downloaded a csv file which contains data about olympic games. The dataset has many columns, such as country, athlete name, year, sport, event, medal which the...
  • Anonymous's avatar
    Anonymous
    4 years ago

    HI lipao255,

    You can try to use the following measure formula to get the count based on country, event, and medal group:

    formula =
    CALCULATE (
        COUNT( Table[Medal] ),
        ALLSELECTED ( Table ),
        VALUES ( Table[Country] ),
        VALUES ( Table[Event] ),
        VALUES ( Table[Medal] )
    )

    Regards,

    Xiaoxin Sheng