Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All
I have a DAX below to get the Planning[Planned_hours], however I need to add in more filters Planning[Status] = "Red" or "Amber" or "Green".
Please could anyone help? Many thanks.
Planned Hours = SUMX(FILTER(Planning,Planning[name]='Supplier'[Supplier] && Planning[MMM-YY]='Supplier'[MMM-YY]),Planning[Planned_hrs])
Solved! Go to Solution.
Planned Hours = SUMX(FILTER(Planning,Planning[name]='Supplier'[Supplier] && Planning[MMM-YY]='Supplier'[MMM-YY] && Planning[Status] IN {"Red","Amber","Green"}),Planning[Planned_hrs])
Planned Hours = SUMX(FILTER(Planning,Planning[name]='Supplier'[Supplier] && Planning[MMM-YY]='Supplier'[MMM-YY] && Planning[Status] IN {"Red","Amber","Green"}),Planning[Planned_hrs])
It works perfectly! Many thanks!
Thanks sjoerdvn. I did use the filter to filter planned hours to only Red, Green and Amber, however it only works when the planned hours are in it's own Planning table. I need to create a column of planned hours in another table Supplier, so I used the DAX to look for planned hours from Planning table. The DAX is to create a planned hour column in the Supplier table, however once planned hours are shown, they included other categories but not only Red, Green and Amber. Therefore I wonder can I add in more filters into the DAX to get the correct planned hours from Planning table into Supplier table.
Can you provide more context? Are you building a measure or a computed column? Does the DAX above even work? Have you tried to simply add a filter or slicer on Planning[Status] ?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
37 |