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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.