Forum Discussion
How to remove those row no sales amount using script ?
Hi All
My below script is working fine , it allow me to add in new brand :-
My question is how to modify the above script , so that it will smart enough only display those Brand which have sales value.
Paul
admin11 not sure why you are using ISBLANK
Sales Vari % = divide( [Sales YTD]-[Sales LYTD], [Sales LYTD] )✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
11 Replies
- parry2kSuper User
admin11 not sure why you are using ISBLANK
Sales Vari % = divide( [Sales YTD]-[Sales LYTD], [Sales LYTD] )✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- admin11Memorable Member
Thank you for sharing. As my script is a bit complicated , and i am not sure where to insert the condition . Are you able to help me ? Thank you in advance.
- ALLUREANSolution Sage
What is your Sales Vari % measure?
- admin11Memorable Member
- ALLUREANSolution Sage
Can you paste the code for Sales Vari %? And if you remove it from the table, is the empty brands also are not showing?
- parry2kSuper User
ALLUREAN doesn't make sense why check for blank() when you are returning blank(), doesn't make sense at all?
Just my 2 cents.
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡