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
I get the message "The end of the input was reached". What I'm trying to do is have multiple 'OR'-functions in my table. I've tried || , but that didn't help much.
What I need is;
column [dept] has 8 unique values(A, B, C, D, E, F, G, H), which I want to categorize in 3 categories X, Y and Z. For example, A through C go in X, D through F go in Y, what's left in Z.
How would I handle this in Powerpivot?
Solved! Go to Solution.
Hi @Jawroy,
I try to reproduce your scenario and get expected result as follows.
1. Type your data into Excel table, click PowerPivot->Add to Date Model under home page.
2. Create a rank calculated column using the formula.
=RANKX(Table1,Table1[dept],,ASC)
3. Based on rank column value, calculate the expected result using formula.
=IF(AND(Table1[Rank]>=1,Table1[Rank]<=3),"X",IF(Table1[Rank]<=7,"Y","Z"))
Please see the result shown in following screenshot.
If you have other issues, don't hesitate to let me know.
Best Regards,
Angelia
Hi @Jawroy,
I try to reproduce your scenario and get expected result as follows.
1. Type your data into Excel table, click PowerPivot->Add to Date Model under home page.
2. Create a rank calculated column using the formula.
=RANKX(Table1,Table1[dept],,ASC)
3. Based on rank column value, calculate the expected result using formula.
=IF(AND(Table1[Rank]>=1,Table1[Rank]<=3),"X",IF(Table1[Rank]<=7,"Y","Z"))
Please see the result shown in following screenshot.
If you have other issues, don't hesitate to let me know.
Best Regards,
Angelia
Thanks Angelia
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 |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |