Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Problem:
I need to count how many matching ID numbers make it from Table 1 (Stage 1) to Table 2 (Stage 2) in order to calculate the conversion rate from Stage 1 to Stage 2.
Table 1 (Stage 1)
ID Value (string) | Stage |
123A | Stage 1 |
456B | Stage 1 |
789C | Stage 1 |
Table 2 (Stage 2)
ID Value (string) | Stage |
123A | Stage 2 |
999D | Stage 2 |
789C | Stage 2 |
In this example I would like to figure out my conversion rate from stage 1 to stage 2. How can I count that two ID's from Stage 1 made it to Stage 2 (123A and 789C)? Once I get the count which would be 2 in this case, I can take that and divide over the total ID count in Stage 2 to get a 2/3 or 66% conversion rate.
Solved! Go to Solution.
You can use INTERSECT to see which ID's are in both tables, then COUNTROWS of the table resulting from the INTERSECT
Measure = COUNTROWS(INTERSECT(VALUES(Table1[ID Value]),VALUES('Table2'[ID Value])))
Your conversion rate would then be
Conversion Rate = DIVIDE([Measure], COUNTROWS('Table2'))
Regards
Phil
Proud to be a Super User!
You can use INTERSECT to see which ID's are in both tables, then COUNTROWS of the table resulting from the INTERSECT
Measure = COUNTROWS(INTERSECT(VALUES(Table1[ID Value]),VALUES('Table2'[ID Value])))
Your conversion rate would then be
Conversion Rate = DIVIDE([Measure], COUNTROWS('Table2'))
Regards
Phil
Proud to be a Super User!
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.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |