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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors