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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Max1968
Frequent Visitor

Use measure scalar value of a calculated measure in Calculated Column.

Hi All,

I'm dealing with this issue since a while and so far, I could not found a solutions,

I have calculated a Percentile as measure with the following formula that benefit of the slicer selection:

Percentile 70% = CALCULATE(PERCENTILE.INC(DistrictWorkload[Total Act Cost $ query],0.7),ALLEXCEPT('DistrictWorkload',DistrictWorkload[Model Number],DistrictWorkload[Parts Status],DistrictWorkload[System Type],DistrictWorkload[Billing Type Description],DistrictWorkload[Platform],DistrictWorkload[Service Description],DistrictWorkload[SC End of Work Month-Year]))

and I want to add the scalar results of “Percentile 70%” measure  in "DistrictWorkload" Table as a new Colum and the Value should be the same for each  row, I have now different percentile value in each of the row that is exactly the Total Act Cost $.

 

Thanks in advance,

Max

1 ACCEPTED SOLUTION

Different from Tableau, Power BI does not support dynamic bucketing.  You need to prepare all possible buckets in a reference table, and then use measures to pick the desired ranges.

View solution in original post

8 REPLIES 8
Kedar_Pande
Super User
Super User

You should:

  1. Use the measure to display the percentile dynamically in visuals (like tables) based on your slicer context.
  2. If you need a calculated column, you'd need to remove slicer interactivity, but this will not give the dynamic filtering based on slicers.

For your situation, it's best to continue using the Percentile 70% measure within your visuals to display the percentile value correctly across filtered data. A calculated column would be static and not react to slicers.

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Thanks for the replying,

I can't remove the the slicer context because the percentile value should be used to acchive the following 

clusterization and so should be relative only to the selected models or system type in my case.

Max1968_0-1729441631680.png

Actually I'm trying to create a Virtual Table that respond to the slicer selections to run the calculation within this table but so far I was not able to filter more than one model at time!

Regards

Different from Tableau, Power BI does not support dynamic bucketing.  You need to prepare all possible buckets in a reference table, and then use measures to pick the desired ranges.

Many thanks for the hints!

I'll start to work on it, if there is somewhere a pratical example please so kindly to share.

Regards

 

 

lbendlin
Super User
Super User

and I want to add the scalar results of “Percentile 70%” measure  in "DistrictWorkload" Table as a new Colum 

You cannot/should not create a calculated column from a measure.  It's technically possible but makes no sense as you are missing the filter context.

Tks for replaying!

Yes you all rigth I'll miss the filter context but I'm just interested to fill a colum with the same scalar value.

For exsample if percentile value calculated is 1000 I jsut want to move the value in a colum for all row like when you create a measure. Measure=1000.

T

What do you mean by this?
For exsample if percentile value calculated is 1000 I jsut want to move the value in a colum for all row like when you create a measure. Measure=1000.

 

Measures in a calculated column will not respond to slicer selections. Their values will not chage unless the formula or the underlying data has been modified.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Still no.  You cannot meaningfully do that.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors