Forum Discussion
Match selected number in same table column
- 5 years ago
VD , best is you have an independent batch table and create a measure like this and add this with all un summarized columns in a table visual
measure =
var _max = maxx(allselected(Batch_Number),Batch_Number[Batch_Number])
return
calculate(count(Table[Batch_Number]), filter(Table, table[parent_order_number] = _max))or with same table batch_number as slicer
measure =
var _max = maxx(Table(Batch_Number),Table[Batch_Number])
return
calculate(count(Table[Batch_Number]), filter(Table, table[parent_order_number] = _max), removefilters(Table[Batch_Number]) )refer Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
Hi VD,
You can implement this as follows, I have used this in one of my project the same scenario was there
Steps :
1) Create single column table having distinct values of batch_no as "Batch"
2) Create duplicate table of TABLE_1 as Dup_TABLE_1
3) Create relation in Batch[batch_no] and TABLE_1[batch_no]
4) Create relation in Batch[batch_no] and Dup_TABLE_1[parent_order_no]
5) Take a slicer having values from Batch table
Hope it solves your problem. Let me know in case of any help in implementing or it is working for you or not.
Best regards,
Pooja Darbhe