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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rpinxt
Impactful Individual
Impactful Individual

Use the selected parameter measure in a calculate

I have this :

rpinxt_0-1714031890879.png

I have in a field parameter 4 opties connected to 4 different measures.

So when I change selection from Addendum to Inbound the amounts under addendum will change to the inbound amounts.

Perfect.

But for my selection I also want to get the amounts of sameperiodlastyear. (and then subtract but that would not be the hardest part).

 

In my calculate I cannot get the reference to prmLBE_Comp apparently.

How would I reference the selected measure from my field parameter in my calculate?

 

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @rpinxt ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1714111104836.png

vtianyichmsft_1-1714111115004.png

vtianyichmsft_2-1714111129149.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

View solution in original post

3 REPLIES 3
v-tianyich-msft
Community Support
Community Support

Hi @rpinxt ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1714111104836.png

vtianyichmsft_1-1714111115004.png

vtianyichmsft_2-1714111129149.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

thanks @v-tianyich-msft seems to be working in your example. Will have a look if I can implement it in my file.

rpinxt
Impactful Individual
Impactful Individual

Tried something now with using a switch:

rpinxt_0-1714034892364.png

I am not getting any errors but the result is not sameperiodlastyear but the same amount as the current year.....

 

Makes no sense to me. Guess the option with switch is also not the way to go.

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.