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
Afternoon All,
I need a little help to get the below working as expected.
I have a table of income data, this would inclusde
Amount = Various values
Payment Date = date of payment
SourceCode = Structured source code to track payments
Payment Method = Cash, Direct Debit etc..
I have a custom column" that for the most par works, Everything below execpt the section in bold works. What i want to happen is
this exceprt from SQL
"case
when sourcecode like 'A%' and sourcecode not in ('AUGO','AUPO','AURO','AUTO','AUCO','AUFO','OOOO','OAMA','OANA',
'OARS','ZREF','ZBAN','NAUG','AWAO','BUSR') and sourcecode not like 'AV%' then '01_Cash'
"
I constructed the par in bold and while no errors i dont seem to see in my SourceType Column the CASH value returned?
IF anyone has any pointers please fire th
Solved! Go to Solution.
have you tried
IF(LEFT(SOUCECODE,1)="A" && NOT SOURCECODE IN {"XXX","XXX","XXX"}&&LEFT(SOURCECODE,2)<>"AV", "01_CASH")
Proud to be a Super User!
have you tried
IF(LEFT(SOUCECODE,1)="A" && NOT SOURCECODE IN {"XXX","XXX","XXX"}&&LEFT(SOURCECODE,2)<>"AV", "01_CASH")
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |