Forum Discussion

tgraves's avatar
tgraves
Regular Visitor
3 years ago
Solved

Reset Counter

I have a report where I have 3 tables, the tables are lined up side by side.     Each table only shows results for the corresponding number.  Table 1 = Number 1, etc.   Each table has a name and ...
  • v-jianboli-msft's avatar
    3 years ago

    Hi tgraves ,

     

    Please try:

    First unpivot the table:

    Then use this table to create a slicer

    Apply the measrue:

    Number = 
    var _a = LEFT(MAX('Table (2)'[Img]),LEN(MAX('Table (2)'[Img]))-4)
    var _b = RIGHT(_a,LEN(_a)-5)
    var _c = COUNTROWS('Table (3)')
    var _d = MOD(_b,_c)
    return IF(_d=0,_c,MOD(_b,_c))

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.