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
Anonymous
Not applicable

query parameter

Hi all,

 

I m using DAX STUDIO to prepare queries for REPORT BUILDER but I have an issue with the parameter :

 

- This query works perfectly :

 

YaminK_0-1610373250644.png

But when I want to parameterize the year [ANNEE] = 2019 into [ANNEE]= periode it doesn't work because of an incompatibility between numer and string (comparison operators). I suppose the string in question is this one :

YaminK_1-1610373395633.png

Because, in the the first iteration, [ANNEE]=2019 works fine !

But in the query history, the year is wrapped with "" ?

 

YaminK_2-1610373538604.png

Thanks

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

how about adding a Vaule function like this

period=value(@period)

@Anonymous 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@wdx223_Daniel , thank you !

wdx223_Daniel
Super User
Super User

how about adding a Vaule function like this

period=value(@period)

@Anonymous 

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.