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
Mimi_Ibrahim
Helper I
Helper I

Data Load from Azure Synapse using list.max doesn't work

Hi All

 

I have below formula embedded in my PBIX file to restrict by 2 months worth of data. It works fine when the data loads from Cloudera Impala. However, it doesn't work when the connection is repointed to Azure Synapse- basically the data loads everything when I click refresh. Anyone can help? Thank you.

 

#"Filtered Rows" = Table.SelectRows(Table,
each ([calmonth] = List.Max(Table[calmonth]) or [calmonth] = List.Max(Table[calmonth])-1)),
#"Kept Errors" = Table.SelectRowsWithErrors(#"Filtered Rows")
in
#"Kept Errors"

2 ACCEPTED SOLUTIONS
v-stephen-msft
Community Support
Community Support

 Hi @Mimi_Ibrahim ,

 

Please check this similar post:

Solved: Error When Using Power Query to Restrict Data - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @Mimi_Ibrahim ,

 

Try the following.

= Table.SelectRows(#"Changed Type", each [calmonth] = List.Max(#"Changed Type"[calmonth]) or [calmonth] = List.Max(#"Changed Type"[calmonth])-1 )

3.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Mimi_Ibrahim
Helper I
Helper I

Hi @v-stephen-msft ,

 

The link you provided is from my other post which is a different issue. This post if for different issue. 

Hi @Mimi_Ibrahim ,

 

Try the following.

= Table.SelectRows(#"Changed Type", each [calmonth] = List.Max(#"Changed Type"[calmonth]) or [calmonth] = List.Max(#"Changed Type"[calmonth])-1 )

3.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

v-stephen-msft
Community Support
Community Support

 Hi @Mimi_Ibrahim ,

 

Please check this similar post:

Solved: Error When Using Power Query to Restrict Data - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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