Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
i have several different columns like subject columns like this
username email english maths scienece computer
abc abc@gmail.com 0-25% 76-100% 0-25%
like engish is 0-25%
maths is 76-100%
sceince is 0
and computer is 0-25%
and another table
| date | username | |
| 8/21/2024 | abc | abc@gmail.com |
| 7/21/2024 | abc | abc@gmail.com |
| 7/11/2024 | abc | abc@gmail.com |
so i want
so here last login date is 8/21/2024
means i want to count columns like abc person compleete 3 subjects except sciecnce/
so i want 3 figure here ..
Solved! Go to Solution.
Hello @rebam12 - you can try the below logic
Hope this helps.
Proud to be a Super User! | |
Hi @rebam12 -Create a measure to get the last login date for each student
Create calculated column to count completed subjects: is more than 0%
Hope this helps.
Proud to be a Super User! | |
is this necessary to create var for each subjects ? what if there is 15 subjects then bit difficult to create 15 variables .... is there any other alternative for this ?
Hello @rebam12 - you can try the below logic
Hope this helps.
Proud to be a Super User! | |
the easiest option is to model your data better.
I.e subjects as rows not columns
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |