Forum Discussion

rammishra's avatar
rammishra
Icon for Helper II rankHelper II
5 years ago
Solved

Dynamic distinct counts by group by considering only latest records

Hello friends   I am stuck with a problem that looked simple but I am not able to fix it. I seek support from you.   I have a table (named FACT) that contains data coming from monitoring visits t...
  • amitchandak's avatar
    5 years ago

    rammishra , This will not help in the case of the calculated column.

    Both score and rank category need to be measure.

    Then you need an independent table to have values of the rank category ("Low", "Medium", "High") , join the column of this table with your rank category  measure in a new measure with a group by FacilityID

     

    measure like, M2 , you have to use

    M1= sumx(values(Table[FacilityID]),[score])

    M2=  calculate([M1], filter(Table, [rank category] = max(category[category]))

     

     

    refer my blog/ video for more detailed steps

     


    Dynamic Segmentation Bucketing Binning
    https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


    Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k
    #PowerBI5 #DynamicSegmentation #Bucketing #Binning #powerbiturns5 #kanerika #bu