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.
I need help with the attached file. Please download it and see.
I need a calculated column in 'Member_event_facts' table. I need it to show the top visited category name (club_event_groups[naam]) for every member_id.
Thank you
Solved! Go to Solution.
Hi, try this:
Top Visit Category = VAR RankingContext = VALUES ( Club_event_groups[naam] ) RETURN CALCULATE ( FIRSTNONBLANK ( Club_event_groups[naam]; Club_event_groups[naam] ); TOPN ( 1; ALL ( Club_event_groups[naam] ); [Total visits] ); RankingContext )
Regards
Victor
Hi sabedin,
Relationship between table 'Member_Club_Events' and table 'Member_Event_Facts' is many to many, so it's difficult to achieve [naam] value based on Member_Id using some function(e.g.: related()). You should do some modification on the table structure between the three tables to make the relationship between table Member_club_events, Members and Member_event_facts, for example, you can merge table Members with Member_club_events using right ourter join and then create a one-to-many relationship between 'merged table' and 'Member_Event-facts'.
Hope it's helpful to you.
Jimmy Tao
Hi Jimmy, thanks for replying.
Please check the calculated column Top Selling Category, with this I was able to get the Count of most visited category. Maybe you can you modify it somehow so we get the actual name (naam) not the Count.
Top Selling Category = VAR RankingContext = values(Club_event_groups[naam]) Return CALCULATE([Total visits], TOPN(1,all(Club_event_groups[naam]),[Total visits]), RankingContext)
Thanks again!
Anyone, please?
Hi, try this:
Top Visit Category = VAR RankingContext = VALUES ( Club_event_groups[naam] ) RETURN CALCULATE ( FIRSTNONBLANK ( Club_event_groups[naam]; Club_event_groups[naam] ); TOPN ( 1; ALL ( Club_event_groups[naam] ); [Total visits] ); RankingContext )
Regards
Victor
Great, thanks a lot Senjor Victor 🙂
Anyone please help!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
113 | |
82 | |
45 | |
42 | |
28 |
User | Count |
---|---|
182 | |
83 | |
70 | |
48 | |
45 |