Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all!
I have a column that contains a number. This number represents the number of days:
| Days |
| 1 |
| 12 |
| 5 |
| 25 |
Now I would like to place next to this column a calculated column that translates this numbers into this groups:
For this I would take a long IF Statement. Is there any alternative?
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I think one of ways to solve it is, and I suggest, having a Grouping Table like below.
I tried to create a sample pbix file like below, and please check the below picture and the attached pbix file.
It is for creating a calculated column.
Group CC =
SUMMARIZE (
FILTER (
'Grouping',
'Grouping'[Min] <= Data[Days]
&& OR ( 'Grouping'[Max] >= Data[Days], 'Grouping'[Max] = BLANK () )
),
'Grouping'[Group]
)
Hi,
I am not sure if I understood your question correctly, but I think one of ways to solve it is, and I suggest, having a Grouping Table like below.
I tried to create a sample pbix file like below, and please check the below picture and the attached pbix file.
It is for creating a calculated column.
Group CC =
SUMMARIZE (
FILTER (
'Grouping',
'Grouping'[Min] <= Data[Days]
&& OR ( 'Grouping'[Max] >= Data[Days], 'Grouping'[Max] = BLANK () )
),
'Grouping'[Group]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |