Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello,
I have the following table and I need to know how i can add new column (Type2) based on the following:
if one of the Type column values for the same BithdayID is Creative then all values in Type2 column for the same BirthdayID should be Creative otherwise Type2 should be Basic. The following table illustrates the disiered results in Type2 column.
Thank you 🙂
BirthdayID | Type | Type2 (New Column) |
Birth-1 | Basic | Basic |
Birth-1 | Basic | Basic |
Birth-4 | Creative | Creative |
Birth-4 | Basic | Creative |
Birth-4 | Basic | Creative |
Birth-7 | Basic | Creative |
Birth-7 | Creative | Creative |
Birth-7 | Basic | Creative |
Solved! Go to Solution.
Hi @RamiDaoud ,
Create following column as follows:
Hi @RamiDaoud ,
Create following column as follows:
The proposed formula works if I add a new column in the default pane but if I want to create similar as custom column in the Power Query Editor than it doesn't work (error) but I have not enough knowledge to find/troubleshoot the issue...if someone maybe so kind 🙂
Thank you!
Hi @RamiDaoud
try a measure
Type2 =
var _isCreative = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[BirthdayID]),'Table'[Type]="Creative")
RETURN
IF(_isCreative>0,"Creative","Basic")
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
88 | |
85 | |
82 | |
65 | |
49 |
User | Count |
---|---|
138 | |
110 | |
104 | |
66 | |
64 |