cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ruicarvalho
New Member

Apply Parameter

I am using an Analysis Services database and I intend to only return data for a given year.
For this, I am using the following syntax ...

{Cube.ApplyParameter, "[DimensioName]. [Column]. [Column]", {"2021"}}

But when I put this syntax, it gives me an error and says that the key did not match any lines in the table.
Can you help me with this topic?
Thanks in advance for the answer

 

example2.pngexample1.jpg

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @ruicarvalho ,

 

I found some similar posts you can refer to

Expression Error.: The key didn't match any rows in the table

how to resolve Power BI error - the key didn't match any rows in the table

Expression.Error: The key did not match any rows in the table

Expression.Error: The key did not match any rows in the table

 

 

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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors