Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Comparing Values from One Column to Another Sumarraizing

Hello,   I think this should be a straightforward probelm - but I can't figure it out!  I think some combination of variables and SUMMARIZE() will get me there but struggling to put it all together...
  • amitchandak's avatar
    6 years ago

    Anonymous , try like


    countx(filter(table[Franchise Sales] >= table[Regional Average sales]),table[ franchiseID])
    sumx(summarize(Table,Table[franchiseID],"_1",sum(table[Franchise Sales]),"_2",sum(table[Regional Average sales])),if([_1]>=[_2],1,0))