The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
In Power BI, I have a table called ESTRUTURAS that has two columns: one called 'Equipamento' (name of the equipment) and the other 'EquipamentoVante' which determines the name of the next equipment in the order. I want to create a column that numbers the order of these equipment. The equipment that does not have next equipment is the last equipment in the set. And the equipment that does not appear in the next equipment column is the first equipment in the set. How do I create this new column (numbering the equipment in a given set of 1, 2, 3, ... until the last equipment) in DAX language?
Solved! Go to Solution.
Hi @Anonymous
I believe we can do something with PATH functions. Exact code would depend on the structure of the data.
Could you post a sample of the ESTRUTURAS table?
Questions:
Regards
Great solution.
I had to create a column inverting the relationship (a column that informs the previous equipment, instead of the one that existed informing the next equipment).
Then just apply the PATH and PATLENGTH functions.
Problem solved.
Thank you very much.
Great solution.
I had to create a column inverting the relationship (a column that informs the previous equipment, instead of the one that existed informing the next equipment).
Then just apply the PATH and PATLENGTH functions.
Problem solved.
Thank you very much.
Hi @Anonymous
I believe we can do something with PATH functions. Exact code would depend on the structure of the data.
Could you post a sample of the ESTRUTURAS table?
Questions:
Regards
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |