Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hello,
what I am looking for seems pretty simple. I have on column with a few different expressions. As long there is the same expression inside, the calculated column should always show "1". First if there comes up a new expression, it should switch to "2". A example is shown in the table below. Should I use the INDEX function or any kind of COUNT function or something completely different?
Thankful for any help!
Column 1 | Calculated Column |
ABC | 1 |
ABC | 1 |
ABC | 1 |
ABC | 1 |
EFG | 2 |
EFG | 2 |
HIJ | 3 |
HIJ | 3 |
Solved! Go to Solution.
Hi @JD193704
You can create the calculated column with the following Dax :
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @JD193704
You can create the calculated column with the following Dax :
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
76 | |
63 | |
51 | |
47 |
User | Count |
---|---|
211 | |
82 | |
61 | |
61 | |
60 |