Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi experts,
I'm struggling trying to visualize this data:
IdUser | IdVideo | IdDevice | Category | Live | NoLive | Date |
Us1 | Vid1 | Dev1 | Live | 1 | 0 | 03/04/2019 |
Us1 | Vid1 | Dev2 | Live | 1 | 0 | 03/04/2019 |
Us1 | Vid2 | Dev1 | NoLive | 0 | 1 | 03/06/2019 |
Us1 | Vid3 | Dev1 | Live | 1 | 0 | 05/04/2019 |
Us2 | Vid1 | Dev1 | Live | 1 | 0 | 03/04/2019 |
Us2 | Vid4 | Dev2 | NoLive | 0 | 1 | 01/04/2019 |
Us3 | Vid5 | Dev1 | NoLive | 0 | 1 | 15/05/2019 |
Us4 | Vid2 | Dev1 | NoLive | 0 | 1 | 09/07/2019 |
Us5 | Vid3 | Dev1 | Live | 1 | 0 | 05/04/2019 |
Us6 | Vid5 | Dev2 | Live | 1 | 0 | 25/09/2019 |
What I'm trying to do is to visualize this data in a venn diagram. For example, if I select dates from 03/04/2019 to 03/06/2019, It should be:
Live; Both; NoLive
Us5; Us1; Us3
Us2
I have created a column as follows:
Both = // Var _Live = CALCULATETABLE('Table';FILTER('Table';'Table'[Live]=1)) // Var _NoLive = CALCULATETABLE('Table';FILTER('Table';'Table'[NoLive]=1)) Var _User = 'Table'[IdUser] Var _NoLive = 'Table'[NoLive] Return IF( CALCULATE( COUNTROWS('Table'); FILTER('Table'; 'Table'[Live]=_NoLive && 'Table'[IdUser]=_User) ); 1; 0 )And then I've created a measure:
Measure = DISTINCTCOUNT('Table'[IdUser])However, I'm not getting the desire output. Please refer to my PBIX FIle
Solved! Go to Solution.
@Anonymous
Check the sample report and take a look at this post.
@Anonymous
Check the sample report and take a look at this post.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |