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
owneyjs15
New Member

Correct Bracket Usage

Would someone be able to explain the correct usage of brackets in M. Particularly i'm trying to understand why this statement:

Html.Table(_, {"Style Number", ".style-number > SPAN:nth-child(1):nth-last-child(1)"})

fails but this one works:

Html.Table(_, {{"Style Number", ".style-number > SPAN:nth-child(1):nth-last-child(1)"}})

 (The second one has double curly brackets while the first has only one). I understand that they are used to define a list. Is it just that the Html.Table function requires a list of list to work properly?

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @owneyjs15 

 

This documentation and the example in it should give you more understanding of how the function works.

https://docs.microsoft.com/en-us/powerquery-m/html-table

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

View solution in original post

1 REPLY 1
Mariusz
Community Champion
Community Champion

Hi @owneyjs15 

 

This documentation and the example in it should give you more understanding of how the function works.

https://docs.microsoft.com/en-us/powerquery-m/html-table

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

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.

Top Solution Authors
Top Kudoed Authors