The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I have two tables, one DIM table with different peopleID's , one FACT table with people ID's and diploma's. I want to create two new columns in the DIM table. One with 'has got diploma A' (true/false) and one with 'has got diploma B" (true/false). Can anyone suggest how to do this? I think this is not difficult for anyone with PBI experience, but I have just started.
PeopleID |
1 |
2 |
3 |
PeopleID | Diploma |
1 | A |
1 | B |
3 | A |
Solved! Go to Solution.
Hi @Dmoetnogleren ,
You can try below calculated column expression.
has got diploma A = CALCULATE("A" IN VALUES('Fact'[Diploma]))
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Hi @Dmoetnogleren ,
You can try below calculated column expression.
has got diploma A = CALCULATE("A" IN VALUES('Fact'[Diploma]))
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Thank you, this is a good solution!
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |