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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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