Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I have the below scenario where I want to calculate rank of the materials based on the Date, ID and Item in ascending order.
And Each time a slicer filter is selected, the rank must change dynamically based on the selection.
Before Filter :
| Material | ID | Item | Date | Quantity | Rank |
| Mobile | 103 | 1 | 01/01/2021 | 2 | 1 |
| Mobile | 103 | 2 | 01/01/2021 | 16 | 2 |
| Mobile | 104 | 6 | 05/01/2021 | 8 | 3 |
| TV | 100 | 1 | 01/01/2021 | 10 | 1 |
| TV | 101 | 3 | 12/01/2021 | 5 | 2 |
| TV | 102 | 6 | 16/01/2021 | 15 | 3 |
After Date Selection between 10/01/2021 to 20/01/2021 :
| Material | ID | Item | Date | Quantity | Rank |
| TV | 101 | 3 | 12/01/2021 | 5 | 1 |
| TV | 102 | 6 | 16/01/2021 | 15 | 2 |
Any help would be appreciated. Thanks in advance.
Solved! Go to Solution.
@AishwaryaS , Try a measure like
calculate(Count(Table[Quantity]), filter(allselected(Table), Table[Material] = max(Table[Material]) && Table[Date] <= max(Table[Date])))
@AishwaryaS , Try a measure like
calculate(Count(Table[Quantity]), filter(allselected(Table), Table[Material] = max(Table[Material]) && Table[Date] <= max(Table[Date])))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |