Forum Discussion

DObiol's avatar
DObiol
Regular Visitor
6 years ago
Solved

Emulating an array

Hi!!!   I need some help! I have a trouble in many dashboards creating a measure that emulates an array.   For eample, imagine we have a table like the following, where each value of the cells i...
  • parry2k's avatar
    parry2k
    6 years ago

    DObiol add the following three measures and you will get it, breaking it down to easily understand everything, use the last measure in your visual

     

    Sum Sales = SUM ( Mean[Sales] )
    
    Sales Mean = DIVIDE ( CALCULATE ( [Sum Sales], ALL ( Mean[Month] ) ), CALCULATE ( DISTINCTCOUNT ( Mean[Month] ), ALL ( Mean[Month] ) ) )
    
    Sales below Mean = SUMX ( SUMMARIZE ( Mean,  Mean[Country], Mean[Month] ), IF ( [Sum Sales] < [Sales Mea], [Sum Sales] ) )

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!