Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I know this is easy for you guys but my formula could not seem to work. If you can please help me on the formula in red font
RESULT =
SWITCH(TRUE(),
'Table'[Type]="Series",'Table'[Grade_ Assignment],
'Table'[Type]="Movie" && ISBLANK('Table'[Adviser]) && 'Table'[Title]="Beauty & the Beast",'Table'[Grade_ Assignment],
'Table'[Adviser]
)
Here is my desired result:
Hoping for any assistance. Thank you in advance
Solved! Go to Solution.
Hey @summer18 ,
I think the logic was missing a few parts, but that here should work:
RESULT =
SWITCH(
TRUE(),
'Table'[Type] = "Series",'Table'[Grade_ Assignment],
'Table'[Type] = "Movie" && (ISBLANK('Table'[Adviser]) || 'Table'[Adviser] = "") && 'Table'[Title]="Beauty & the Beast",'Table'[Grade_ Assignment],
'Table'[Type] = "Songs" && (ISBLANK('Table'[Adviser]) || 'Table'[Adviser] = "") , 'Table'[Grade_ Assignment],
'Table'[Type] = "Songs", 'Table'[Adviser],
'Table'[Adviser]
)
For the next time, please paste a table and not a screenshot of the table. I had to type the whole table by hand now to check the formula...
Hey @summer18 ,
I think the logic was missing a few parts, but that here should work:
RESULT =
SWITCH(
TRUE(),
'Table'[Type] = "Series",'Table'[Grade_ Assignment],
'Table'[Type] = "Movie" && (ISBLANK('Table'[Adviser]) || 'Table'[Adviser] = "") && 'Table'[Title]="Beauty & the Beast",'Table'[Grade_ Assignment],
'Table'[Type] = "Songs" && (ISBLANK('Table'[Adviser]) || 'Table'[Adviser] = "") , 'Table'[Grade_ Assignment],
'Table'[Type] = "Songs", 'Table'[Adviser],
'Table'[Adviser]
)
For the next time, please paste a table and not a screenshot of the table. I had to type the whole table by hand now to check the formula...
Hi @selimovd , thank you very much! It works! Sorry for pasting the screenshot of the table. I could not see where I can attach my pbix.
Hey @summer18 ,
no problem, I'm happy it works 😊
Yes, that's a little bit the problem in this forum, you cannot attach a PBIX file. But you could upload it to OneDrive, Dropbox, SwissTransfer or something similar and post the link.
But you can always post the table as a html table, then I can just paste the values to my PBIX file:
Best regards
Denis
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |