The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I want to create a new column with a 1 when the 1st occurence of the 'Occurrences UID' column happens, and the new column to have a 0 for all other instances. In excel the formula is: =IF(COUNTIF($AO$2:AO2,AO2)>1,0,1). How could I accomplish this in Power BI?
Solved! Go to Solution.
How do you decide which is the first? ie how is the list sorted?
In this example I'm sorting by a column called amt. You can change that for however you want to sort it. RANKX also has extra parameters for ordering ascending or descending if you need it.
This worked! Thank you for your help!
How do you decide which is the first? ie how is the list sorted?
In this example I'm sorting by a column called amt. You can change that for however you want to sort it. RANKX also has extra parameters for ordering ascending or descending if you need it.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |