Forum Discussion
Show Zero in table
- 1 year ago
Hi Anonymous
Thx for your reply.
I change the code a little bit and it works.
Code:
Sum_income = var x = SUM(I_table[Income]) var _P_CatList = CALCULATETABLE(VALUES(P_table[P_Cat]),FILTER(I_table,I_table[Project type] IN VALUES(I_table[Project type]))) return IF(MAX(P_table[P_Cat]) in _P_CatList,x,x+0 )Thank You.
Best Regards,
Duncan
Hi Ritaf1983,
Thx for your reply, I had created a pbix file simulated my situation.
https://drive.google.com/file/d/1Jn17RmjsW1DyiMbeNwsIZ8k9gAw00Fad/view?usp=sharing
And I cannot do the expected result in the desktop so i provide it here:
| P_Cat | Sum_income |
| A | 100 |
| B | 0 |
Thank you.
Best Regards,
Duncan
Hi DuncanYeah
Try this formula :
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- DuncanYeah1 year agoHelper III
Hi Ritaf1983 ,
Thx for your reply and it kinda works.
However, after applying other filters the categories just disappear instead of showing zero.
Thank You.
Regards,
Duncan
- Ritaf19831 year agoSuper User
Hi DuncanYeah
You need to create a model + formulas that serve your scenario...- DuncanYeah1 year agoHelper III
Hi Ritaf1983 ,
Sorry for missing the filter in the past example.
I recreate the pbix that have a filter inside.
https://drive.google.com/file/d/1Swv7apy3WZ9KXVwVEUdV8SJGhfLtILbo/view?usp=drive_linkSorry and thank you for your reply and effort.
Regards,
Duncan