The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have two tables:
Classes with CIP- Name of Class, CIP code, Vcode
VCodeList_all- Teacher name, Vcode
The Vcodes repeat in both tables. Teachers can have several Vcodes on their teaching cert. Classes also have several Vcodes that work for teaching.
Classes with CIP:
Name of Class | CIP code | Vcode |
Plant Science | 010601 | V010601 |
Plant Science | 010601 | V010000 |
Urban Farming | 011201 | V010000 |
Yearbook | 091001 | V091001 |
VCodeList_all
Vcode | Staff Name |
V091001 | Elvis Presley |
V010601 | Nancy Sinatra |
V010000 | Nancy Sinatra |
V010000 | Big Bopper |
Note that the Vcodes repeat for some classes. The idea is to have a list of teachers return when you put in a class name or list of classes when you put in a teachers name.
EX:
If I type in V010000 it should return the class name that this Vcode works for
Plant Science
Urban Farming
And the teachers that can teach it are:
Nancy Sinatra
Big Bopper
Is this even possible?
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Staff measure: =
CONCATENATEX (
SUMMARIZE (
CALCULATETABLE ( Staff_V_fct, SUMMARIZE ( Class_V_fct, V_dim[Vcode] ) ),
Staff_dim[Staff Name]
),
Staff_dim[Staff Name],
", "
)
Class measure: =
CONCATENATEX (
SUMMARIZE (
CALCULATETABLE ( Class_V_fct, SUMMARIZE ( Staff_V_fct, V_dim[Vcode] ) ),
Class_dim[Name of Class]
),
Class_dim[Name of Class],
", "
)
A bridge table is enough,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Staff measure: =
CONCATENATEX (
SUMMARIZE (
CALCULATETABLE ( Staff_V_fct, SUMMARIZE ( Class_V_fct, V_dim[Vcode] ) ),
Staff_dim[Staff Name]
),
Staff_dim[Staff Name],
", "
)
Class measure: =
CONCATENATEX (
SUMMARIZE (
CALCULATETABLE ( Class_V_fct, SUMMARIZE ( Staff_V_fct, V_dim[Vcode] ) ),
Class_dim[Name of Class]
),
Class_dim[Name of Class],
", "
)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |