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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Jeremy19
Helper III
Helper III

How to create ID variable by value an other variable

Hello,

 

I would create ID variable like this exemple :

 

Variable A             ID

A                           1

A                           1

A                           1

B                           2

B                           2

C                           3

C                           3

C                           3

 

And I would like to create a formula for the variable to increment automatically when there is a new value in variable A. Can someone help me?

 

Thanks !

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

hI @Jeremy19

 

Try Ranking Column

 

ID =
RANKX ( Table1, Table1[Variable A],, ASC, DENSE )

Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.