Forum Discussion
A toggle checkbox on PowerBI
One of the requirement for my small PowerBI project is a toggle checkbox. For example, here is 'salesperson' table
KeyEmployee
When the checkbox is checked, only 'KeyEmployee' will display on the dashboard, otherwise everyone will display. Lets see hows it looks in final solution:
Power BI Checkbox
I have successfully make it works as you can see above by using a temporary table and help from DAX:
DAX for handle checkbox
My question is: Do we have any build-in visualization from Power BI to achieve my requirement? Or any better way for this?
P/S: I've written a blog post for my solution (sorry, this is not in English) based on the data model from Guy in a Cube, please correct me if my solution is a bad solution.
2 Replies
- wdx223_Daniel
Community Champion
TotalSales=CALCULATE(SUM(Sales[Sales Amount]),IF(SELECTEDVALUE(Checkbox[Id])=1,Salesperson[KeyEmployee]=1,TRUE()))
- amitchandak
Super User
haiquangitvn , to me your way seems correct. I think that is the way to go.