Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nirrobi
Helper V
Helper V

split query for subquery

Hi all,

 

I have base query as follow:

 

InvoiceNO;Line;Amount

INV0011100
INV0012105
INV001385
INV002188
INV002277
INV003111
INV004111
INV004211
INV004323
INV0044

32

 

I need to have different query for every invoice number

Inv001

.

.

Inv004

 

example Inv004:

AmountLineInvoiceNO
111INV004
112INV004
233INV004
324

INV004

   
   

 

every refresh the amount of invoices can be change.

I succed to do it with 4 VAR that was manually recorded but if next refresh there will be 5 Invoices the last invoice will be missing.

is there a way to implemnt it with only variable (ommit the 4 manual variable I created)?

 

Thanks in advanced.

 

Nir.

 

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi nirrobi,

 

I succed to do it with 4 VAR that was manually recorded but if next refresh there will be 5 Invoices the last invoice will be missing.

is there a way to implemnt it with only variable (ommit the 4 manual variable I created)?

 

<--- Could you share the measure you are using and clarify more details about your expected result?

 

Regards,

Jimmy Tao

I upload the file -attaced :

https://www.dropbox.com/s/jns3lygqnj33zmw/INVOICES%20SPLIT.pbix?dl=0

 

I didnt use any measure , I want to use only power query.

 

the end result should be N/VAR new query/sheet for every invoice.

 

please

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.