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
oakfootballclub
Helper IV
Helper IV

how to get multiple rule to a single column

Hi experts, recently I have encountered a complicated problem and now hope to be able to solved via your support.

here is the data:

value
5
7
14
16
4
2
8
10
20
3
6

 

and based on the data above here is a  rule to get a new column

when then
1<= value < 10 A
6<=value<10 B
value>=10 C

 

and here is the expected result:

 

valueexpected result
5A
7A, B
14C
16C
4A
2A
8A, B
10C
20C
3A
6A, B 

can you help me to get the expected result? Thank you.

 

 

2 ACCEPTED SOLUTIONS

Here is the solution 

elitesmitpatel_0-1726288749007.png

create a measure -->

Category =
var a = IF(SUM('Table'[value]) >= 1 && SUM('Table'[value]) < 10, "A ",BLANK())
var b = IF(SUM('Table'[value]) >= 6 && SUM('Table'[value]) < 10, ", B",BLANK())
var c = IF(SUM('Table'[value]) >= 10, "C", BLANK())

RETURN
CONCATENATE(a,CONCATENATE(b,c))

Here is the file --
Get multiple rule to a single column 

If it helps ,Please appreciate by Accept it as solution.

View solution in original post

dharmendars007
Memorable Member
Memorable Member

Hello @oakfootballclub , 

 

Please try this measure in your calculated column, this should work..

 

dharmendars007_0-1726293050857.png

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

3 REPLIES 3
dharmendars007
Memorable Member
Memorable Member

Hello @oakfootballclub , 

 

Please try this measure in your calculated column, this should work..

 

dharmendars007_0-1726293050857.png

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

oakfootballclub
Helper IV
Helper IV

Hi experts, recently I have encountered a complicated problem and now hope to be able to solved via your support.

here is the data:

 

value
5
7
14
16
4
2
8
10
20
3
6

 

and based on the data above here is a  rule to get a new column

when then
1<= value < 10 A
6<=value<10 B
value>=10 C

 

and here is the expected result:

 

valueexpected result
5A
7A, B
14C
16C
4A
2A
8A, B
10C
20C
3A
6A, B 

can you help me to get the expected result? Thank you.

Here is the solution 

elitesmitpatel_0-1726288749007.png

create a measure -->

Category =
var a = IF(SUM('Table'[value]) >= 1 && SUM('Table'[value]) < 10, "A ",BLANK())
var b = IF(SUM('Table'[value]) >= 6 && SUM('Table'[value]) < 10, ", B",BLANK())
var c = IF(SUM('Table'[value]) >= 10, "C", BLANK())

RETURN
CONCATENATE(a,CONCATENATE(b,c))

Here is the file --
Get multiple rule to a single column 

If it helps ,Please appreciate by Accept it as solution.

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.