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´m having an issue with Path
"Hierarquia = PATH('Itens do Demonstrativo'[DGBI_LINHA_IDPAI], 'Itens do Demonstrativo'[DGBI_LINHA_ID])" is saying "powerbi DAX firebase PATH The X must also exist in X. Please add the missing data and try again."
However, if you look at the logic, LINHA_ID = 2 is the lowest level of the hierarchy and doesn´t have anything above him.
Can anyone help me?
Solved! Go to Solution.
Learn about the Path comman here ...
https://learn.microsoft.com/en-us/dax/path-function-dax
Your dax says ...
Hierarquia =
PATH(
'Itens do Demonstrativo'[DGBI_LINHA_IDPAI],
'Itens do Demonstrativo'[DGBI_LINHA_ID]
)
Therefore DGBI_LINHA_IDPAI = 2 is missing
or you have the parents and child the wrong way wrong?
Try ..
"Hierarquia =
PATH(
'Itens do Demonstrativo'[DGBI_LINHA_ID],
'Itens do Demonstrativo'[DGBI_LINHA_IDPAI]
)
I want to help you more but your description is too vague. Please write it again.
You will get a quicker and better response without misunderstandings if you put time and effort into carefully writing a clear problem description with example input and output data. Look forward to helping you when this information is forthcoming
* Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want. (That is just crazy).
* Please DO give a simple non-technical functional description of what you want
* Keep it simple and break large projects into smaller questions and ask just one question per ticket.
* Rename columns to user friendly names. Avoid your own system jargon that we may not understand.
* Most importantly please provide example input data as table text (not a screen print) so helpers can import the data to build a solution for you. (Learn how to share data below)
* Provide the example desired output, with a clear step-by-step description of calculations and the process flow.
* Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
* Remove any unneeded tables, rows or columns which may cause confusion. Keep it short and concise with the minimal information regarding the key problem.
* Remember not to share private data ... we don't want you to get into trouble.
* Please click the thumbs up button for these helpful hints and tips. Thank you.
Learn how to attach data in the forum using OneDrive:-
* Save your file in a OneDrive folder
* Right click on the file and click the “Share” blue cloud icon
* Click the bottom “Copy” button
* Click” Anyone with link can edit”
* Click “Can Edit”
* Click “Can View”
* Click “Apply” button
* Click “Copy”
* Paste the generated link via the forum, email, chat, or any other method.
* Helpers can then download your data, build a solution and share it back.
Learn how to attach data in the forum using Dropbox:-
1. Open Dropbox: Access the Dropbox folder on your computer or through the Dropbox web interface.
2. Select File/Folder: Find the file or folder you want to share.
3. Click Share (or Get Link): Look for a "Share" option or a similar "Get Link" option.
4. Choose Permissions: Decide whether to allow "view only" or "view and download" access.
5. Copy and Share: Copy the generated link and share it with anyone via the forum, email, chat, or any other method.
@brunozanoelo please can you click the [accept solution] button next to my solution. Thank you
You need to add the missing value '2' to the Table[IDPAI] column. This value represents a parent node and must be present to establish the hierarchy path.
Proud to be a Super User!
Hi @brunozanoelo ,
Thanks so much @speedramps your explanation about the PATH function and column order makes perfect sense.
@brunozanoelo could you please try the solution as shared above? Just make sure the DGBI_LINHA_ID is the child and DGBI_LINHA_IDPAI is the parent i.e., use the child column first in the PATH function, as shown. That should resolve the error you're seeing. Let us know if it works happy to help further if needed.
Thnaks,
Akhil.
Learn about the Path comman here ...
https://learn.microsoft.com/en-us/dax/path-function-dax
Your dax says ...
Hierarquia =
PATH(
'Itens do Demonstrativo'[DGBI_LINHA_IDPAI],
'Itens do Demonstrativo'[DGBI_LINHA_ID]
)
Therefore DGBI_LINHA_IDPAI = 2 is missing
or you have the parents and child the wrong way wrong?
Try ..
"Hierarquia =
PATH(
'Itens do Demonstrativo'[DGBI_LINHA_ID],
'Itens do Demonstrativo'[DGBI_LINHA_IDPAI]
)
I want to help you more but your description is too vague. Please write it again.
You will get a quicker and better response without misunderstandings if you put time and effort into carefully writing a clear problem description with example input and output data. Look forward to helping you when this information is forthcoming
* Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want. (That is just crazy).
* Please DO give a simple non-technical functional description of what you want
* Keep it simple and break large projects into smaller questions and ask just one question per ticket.
* Rename columns to user friendly names. Avoid your own system jargon that we may not understand.
* Most importantly please provide example input data as table text (not a screen print) so helpers can import the data to build a solution for you. (Learn how to share data below)
* Provide the example desired output, with a clear step-by-step description of calculations and the process flow.
* Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
* Remove any unneeded tables, rows or columns which may cause confusion. Keep it short and concise with the minimal information regarding the key problem.
* Remember not to share private data ... we don't want you to get into trouble.
* Please click the thumbs up button for these helpful hints and tips. Thank you.
Learn how to attach data in the forum using OneDrive:-
* Save your file in a OneDrive folder
* Right click on the file and click the “Share” blue cloud icon
* Click the bottom “Copy” button
* Click” Anyone with link can edit”
* Click “Can Edit”
* Click “Can View”
* Click “Apply” button
* Click “Copy”
* Paste the generated link via the forum, email, chat, or any other method.
* Helpers can then download your data, build a solution and share it back.
Learn how to attach data in the forum using Dropbox:-
1. Open Dropbox: Access the Dropbox folder on your computer or through the Dropbox web interface.
2. Select File/Folder: Find the file or folder you want to share.
3. Click Share (or Get Link): Look for a "Share" option or a similar "Get Link" option.
4. Choose Permissions: Decide whether to allow "view only" or "view and download" access.
5. Copy and Share: Copy the generated link and share it with anyone via the forum, email, chat, or any other method.
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
50 | |
46 |