cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Use parameter in measure

Hello,

 

I'm new to DAX and I'm doing a report that has some of the measures based on dates from a date column (ex.: calculate sum for a type of products for week 1).

I was looking for a way to change the value of the week from measures with the help of parameters. I created a parameter with the calendar values I need and I would like to select a date in "Edit parameters" and all measures based on the date to automatically change.

 

Any suggestions how can I integrate a parameter into a measure?

 

Thank you,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: Use parameter in measure

3 REPLIES 3
Highlighted
Memorable Member
Memorable Member

Re: Use parameter in measure

Highlighted
Microsoft
Microsoft

Re: Use parameter in measure

Hi @Sinziana300,

 

Have you tried the solution provided by @stretcharm above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Highlighted
Frequent Visitor

Re: Use parameter in measure

Hi @v-ljerr-msft,

 

Yes I accepted the response, it works. Thank you.

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors