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 have a table of registrations and a table of viewers. I would try to add them as a relationship but because of how the data is stored and the number of webinars, registrations, and viewers, I can't get it to work. So I'm wondering if I can find a way this way. (Tables simplified)
Registration:
Webinar | |
georgeburns@gb.com | How to tie shoes |
bobhope@bh.com | How to tie shoes |
jackbenny@jb.com | How to tie ties |
donrickles@dr.com | How to tie ties |
Viewers:
Watch start | Watch end | Webinar | |
georgeburns@gb.com | 11:12 | 11:15 | How to tie shoes |
bobhope@bh.com | 11:10 | 11:20 | How to tie shoes |
Georgeburns@gb.com | 11:20 | 11:30 | How to tie shoes |
jackbenny@jb.com | 12:10 | 12:30 | how to tie ties |
What I want in the registration table:
Webinar | Watched | |
georgeburns@gb.com | How to tie shoes | Yes |
bobhope@bh.com | How to tie shoes | Yes |
jackbenny@jb.com | How to tie ties | Yes |
donrickles@dr.com | How to tie ties | No |
I think the idea would be:
For each row in the Registartions table:
Unless I'm missing something here?
Solved! Go to Solution.
Try adding this as a calculated column in your Registrations table.
Watched =
VAR _ViewCount =
CALCULATE (
COUNTROWS ( Viewers ),
TREATAS (
CALCULATETABLE (
SUMMARIZE ( Registrations, Registrations[Email], Registrations[Webinar] )
),
Viewers[Email],
Viewers[Webinar]
)
)
RETURN IF ( _ViewCount > 0, "Yes", "No" )
Try adding this as a calculated column in your Registrations table.
Watched =
VAR _ViewCount =
CALCULATE (
COUNTROWS ( Viewers ),
TREATAS (
CALCULATETABLE (
SUMMARIZE ( Registrations, Registrations[Email], Registrations[Webinar] )
),
Viewers[Email],
Viewers[Webinar]
)
)
RETURN IF ( _ViewCount > 0, "Yes", "No" )
New column Registration =
var _1 = Maxx(filter(Viewers, Viewers[Email] =Registration[email]), Viewers[Email])
return
if(isblank(_1), "No", "Yes")
When I try to do this, I can't add in the registration email in the filter, it only lets me add in values from the viewers table.
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 |
---|---|
99 | |
68 | |
44 | |
37 | |
29 |
User | Count |
---|---|
156 | |
92 | |
62 | |
44 | |
41 |