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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
myteam
New Member

Cube.ApplyParameter how to select from a List

HI PowerBI,    I have the below FISCAL Period YYYYMMM.. How do I write this so it select everything from "2021001" thru to "22025012" ... 

 

= Cube.Transform(ZCV_FI_CP01_V1,

        {

            {Cube.ApplyParameter, "FISCAL_PERIOD", {"2022003"}},

            {Cube.AddAndExpandDimensionColumn, "[ZCV_FI_CP01_V2]

2 REPLIES 2
myteam
New Member

it does not seem to work

Screenshot 2022-07-21 092318.png

v-kkf-msft
Community Support
Community Support

Hi @myteam ,

 

Please try replacing {"2022003"} with the following list

List.Combine({{2021001..2021012},{2022001..2022012}})

 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.