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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
glolge_SLB
Frequent Visitor

Change calculated column using Numeric range parameter

I have created a new column using the numeric range parameter (0,1,0.1). When i created the numeric range parameter, it had to be given default value which i provided as 0.7. The calculated column is correct. When i change the value of the parameter, the calculsted column is not updating. 

Numeric range parameter 

glolge_SLB_0-1717987236438.png

 

Calculated column,

glolge_SLB_1-1717987289066.png

 

When i change the defualt value of 0.7 to other value the calculated column get updated. But the calculated column does not update when i change the numeric range parameter using the assigned slicer

 

Slicer of Numeric range parameter

glolge_SLB_2-1717987376432.png

Would greatly appreciate any help. I have spent too much time trying to solve this. 

1 ACCEPTED SOLUTION

Hi @glolge_SLB 

 

Calculated columns cannot be dynamicly updated according to the numeric range slicer. Only measures can do that. Based on your description, I made an example as below. The first measure is to compare a value with the threshold value. The second one is to sum up the 1s for every date.

TrueComp = IF(SELECTEDVALUE('Table'[Complete]) >= [Threshold Value], 1, 0)
No. of TrueComp = SUMX(VALUES('Table'[Date]),[TrueComp])

vjingzhanmsft_1-1718084610803.png

 

Hope this would be helpful. If you cannot get what you want, you may provide some dummy data and expected outcome, we can then help to provide a more detailed solution. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@glolge_SLB , A calculated column, can use slicer value. Only measure can use slicer value. So please try a measure

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks Amit,

The Calculated column is going to be 0s and 1s and i am using the this in a Line and Clustered column chart with Date befing x axis. I need result for each month/quarter/year. 

 

I tried the measure option but not able to find a way to use iterative aggregator to sum up the 1s for each row. 

 

Calculation measure  - need to find a way to iterative agreegate 

glolge_SLB_0-1718028819794.png

 

Alternatively, i was thinkning of creating three columns in query table using different thresholds and using SWITCH to create a calculated column based on sliser selection.

Hi @glolge_SLB 

 

Calculated columns cannot be dynamicly updated according to the numeric range slicer. Only measures can do that. Based on your description, I made an example as below. The first measure is to compare a value with the threshold value. The second one is to sum up the 1s for every date.

TrueComp = IF(SELECTEDVALUE('Table'[Complete]) >= [Threshold Value], 1, 0)
No. of TrueComp = SUMX(VALUES('Table'[Date]),[TrueComp])

vjingzhanmsft_1-1718084610803.png

 

Hope this would be helpful. If you cannot get what you want, you may provide some dummy data and expected outcome, we can then help to provide a more detailed solution. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.