Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All
I have a expense table , it was filter using below expression :-
Hope some one can share with me how to write the column.
https://www.dropbox.com/s/4jokce4a65qszic/PBT_V2021_400%20GL_TI.pbix?dl=0
Paul Yeo
Solved! Go to Solution.
Hey @admin11 ,
I checked the data, you don't get any result because you don't have rows with GL[Reporting Code] 38, 40, 41 or 50.
If you change the formula to 101 or 164, then a result will appear:
Hi @admin11 ,
I think you already did most of the work.
To break it down to Exp1 and Exp2 you just have to add it to the switch:
1_EXP =
SWITCH(
TRUE(),
'GL'[Reporting Code] >= 00100 && 'GL'[Reporting Code] <= 00375, "EXP",¨
'GL'[Reporting Code] = 50 || 'GL'[Reporting Code] = 41, "EXP1",
'GL'[Reporting Code] = 40 || 'GL'[Reporting Code] = 38, "EXP2",
BLANK()
)
Thank you for sharing , it is what i need , but when i apply your code into my pbi file , the EXP1 and EXP2 not appear.
Helo @admin11 ,
sure, because the first criteria that fits will be taken.
So if you remove the following line, it should work:
'GL'[Reporting Code] >= 00100 && 'GL'[Reporting Code] <= 00375, "EXP"
Hey @admin11 ,
I checked the data, you don't get any result because you don't have rows with GL[Reporting Code] 38, 40, 41 or 50.
If you change the formula to 101 or 164, then a result will appear:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |