Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi All,
Could you please help me with DAX function or Powerquery to solve the below requirement? i need to have one final category for each keyword and organization group. if org & keyword is unique then need to retain the already found category in the final category column
Hi @chem094 ,
Please create the relationship and calculated column.
Final Category =
VAR tab =
FILTER ( 'Table', 'Table'[Customer] = EARLIER ( 'Table'[Customer] ) )
VAR Cus =
CALCULATE ( DISTINCTCOUNT ( 'Table'[Category] ), tab )
VAR Index =
CALCULATE ( MIN ( Category[Index] ), tab )
RETURN
IF (
Cus > 1,
CALCULATE (
MAX ( Category[CategoryOrder] ),
FILTER ( Category, Category[Index] = Index )
),
'Table'[Category]
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @chem094,
as the category is unique per customer I would recommend to use/adjust your customer dimension by creating a new column "Category" there. It's definitly easier than finding a way to put it in a measure.
Liked this post? More Content on:
https://www.youtube.com/channel/UC2lAgCgfyLCHsRv0h-ETBWQ
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
24 | |
15 | |
13 | |
12 | |
8 |
User | Count |
---|---|
30 | |
22 | |
15 | |
14 | |
14 |