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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jiangchuan23
Frequent Visitor

How to create Dynamic Decile group column?

Hey All,

 

I was trying to create a dynamic decile variable to group credit score. Here is the column formula I created

 

Column = IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.1),1
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.2),2
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.3),3
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.4),4
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.5),5
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.6),6
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.7),7
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.8),8
,IF(gains_total[CBR_SCR]<PERCENTILE.EXC(gains_total[CBR_SCR],0.9),9,10
)))))))))

Here is the visual I am trying to create here:

Capture.PNG

As you can see the table above. It worked well for the Overall dataset. It grouped burea score into 10 deciles. each declie had roughly same nunber of counts. However, When I apply the filter to the data. it didn't recalculate declie for the underlying data.

Check snapshot below:

Capture2.PNG

number of counts in each decile are not equal. Do you anybody know how to make the decile group dynamic based on filter you selected ?

 

Thanks,

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @jiangchuan23,

 

Since the new declie column is a calculated column, whose values are initialize once it is created. Its value won't be dynamically changed depend on slicer selection.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @jiangchuan23,

 

Since the new declie column is a calculated column, whose values are initialize once it is created. Its value won't be dynamically changed depend on slicer selection.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks. It would be good for power BI to add  this type of functions in the future

Anonymous
Not applicable

There are way too many things that seems so obviously needed in Power BI that drive me crazy... just like this!

jiangchuan23
Frequent Visitor

it sounds like tableau have a way to do it. 

https://community.tableau.com/thread/224377

Do somebody know how I can replicate this in power BI ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.