Forum Discussion
sow0006
4 years agoFrequent Visitor
Use clause Where in Dax
Hello, I want to reproduce the formula below in a column calculated in PBI : WHERE ((datedemand between '20210201' and '20220530') or (qte<>qtelivree and datedemande >= to_date('20210201','YYYY...
sow0006
4 years agoFrequent Visitor
Hi v-zhangti
The request is to calculate the delivery delays and the output is to have the number of hours expected.
SELECT SUM(hprevues)/360000 AS totalhp
FROM plannifoperateur
WHERE ((datedemand between '20210201' and '20220530')
or (qte<>qtelivree and datedemande >= to_date('20210201','YYYYMMDD') - interval '3 month' and datedemande <= '20220530'))v-zhangti
Community Support
4 years agoHi, sow0006
Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance.
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Best Regards