The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have this table
I want to add a table that shows the rows with the previous value, based on a slicer.
For example, if i put 3 in my slicer, i want a table that shows me this information
@Anonymous , Create an independent table of value and use that as filter , use this measure with other two columns
calculate(countrows(Table), filter(Table, Table[value] = selectedvalue(value[value])-1))
if values is from the same tbale
calculate(countrows(Table), filter(all(Table), Table[value] = selectedvalue(Table[value])-1))
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |