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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
pmadam
Helper II
Helper II

DAX Help

Hi Team,

 

Im trying to get median of Field Paramater which contains Price values. Field Parameter is converting PRice values into text so Im not able to create median of it. How do i fix it? For different visuals i need this Parameter in Avg, Median, min etc. Please help

 

pmadam_0-1662958405890.png

 

Thanks,

Prathy

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi @pmadam ,

I assume you are trying to take median in this kind of scenario:

Data:

ValtteriN_0-1662965628402.png



Parameter:

ValtteriN_1-1662965681047.png



Unfortunately it isn't possible to my knowledge use the field parameter value in this way. If possible I would recommend modifying your data a bit. So try something like this:

Unpivot:

ValtteriN_2-1662966367365.png

And now median:

ValtteriN_3-1662966450266.png

You can use the attribute column as a slicer.


I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ValtteriN
Super User
Super User

Hi @pmadam ,

I assume you are trying to take median in this kind of scenario:

Data:

ValtteriN_0-1662965628402.png



Parameter:

ValtteriN_1-1662965681047.png



Unfortunately it isn't possible to my knowledge use the field parameter value in this way. If possible I would recommend modifying your data a bit. So try something like this:

Unpivot:

ValtteriN_2-1662966367365.png

And now median:

ValtteriN_3-1662966450266.png

You can use the attribute column as a slicer.


I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




BeaBF
Super User
Super User

@pmadam Hi! you have to change the formula of the Field Parameter, because the function "nameof" returns a string. So, what do you want to do in PmPrince? Do you have some sample data?

 

BBF

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.