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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Community Champion
Community Champion

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
Community Champion
Community Champion

how about adding a Vaule function like this

period=value(@period)

@Anonymous 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.