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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
math2841
Regular Visitor

SelectRows function

Dear Power BI Experts,

In my Power BI report i would like to create relations between my different NAV queries, based on the global dimension.

In order to avoid a many to many relation i created a query with my global dimensions as seen below.
Global Dimension table.png
I would like to create a table for each "global dimension no" as described in the following link:

https://www.linkedin.com/pulse/dealing-dimensions-hooking-power-bi-up-microsoft-marghi-cpa-cga


I tried to use SelectRows but im left with an error:
SelectRows Function.png

 I hope you can help me understand what im doing wrong and how i can accomplish my goal. 

I also tried using group by, but it left me with the following table.
If i click on Table in the picture below, i will se my desired result but i do not have one table for each global dimension no. 

I hope you can help me.  

 

 

Group By function.png

 

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

Hi math2841,

 

The syntax of table.selectrows seems to be wrong in your screenshot. You should follow the format like 

Table.SelectRows(table as table, condition as function) as table

Please refer to: https://msdn.microsoft.com/en-us/query-bi/m/table-selectrows

 

Regards,

Jimmy Tao

Thanks for the reply v-yuta-msft.
I found a workaround by using LOOKUP.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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