Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I have a slicer in which there is a calculated column value.
I want to make a custom sort like:
Current
1 Dat PD
2 - 5 PD
6 - 15 PD
16 - 30 PD
31+ PD
but since this is a calculated column I could not do it on Power BI query editor since it is not there.
I tied adding a table and putting index and bringing that index near to this calculated column by LOOKUPVALUE, there occurs a circular dependency
Any other way that can help me?
Solved! Go to Solution.
Hi @YavuzDuran,
for this you should use the function: "Sort one column by another column"
Acct Standing Index =
IF (
AllAccounts[Actual # Days Past Due] = 0,
0,
IF (
AllAccounts[Actual # Days Past Due] = 1,
1,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 1,
AllAccounts[Actual # Days Past Due] < 6
),
2,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 5,
AllAccounts[Actual # Days Past Due] < 16
),
3,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 15,
AllAccounts[Actual # Days Past Due] < 31
),
4,
IF ( AllAccounts[Actual # Days Past Due] > 30, 5, 99 )
)
)
)
)
)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @YavuzDuran,
for this you should use the function: "Sort one column by another column"
Acct Standing Index =
IF (
AllAccounts[Actual # Days Past Due] = 0,
0,
IF (
AllAccounts[Actual # Days Past Due] = 1,
1,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 1,
AllAccounts[Actual # Days Past Due] < 6
),
2,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 5,
AllAccounts[Actual # Days Past Due] < 16
),
3,
IF (
AND (
AllAccounts[Actual # Days Past Due] > 15,
AllAccounts[Actual # Days Past Due] < 31
),
4,
IF ( AllAccounts[Actual # Days Past Due] > 30, 5, 99 )
)
)
)
)
)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Perfect. Worked. Thank you.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 61 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 39 | |
| 30 | |
| 26 |