Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi, I have 3 columns - Custid, Prodid, Reservation Date and Cancellation Date and below is the requirement.
I want to get Count of Custid WHERE Reservation date is in last 4 weeks from todays date WHERE there is no Cancellation date
DIVIDED by Count of Distinct Prodid DIVIDED by 13
Can someone please give me this DAX query ? Many Thanks
Hi @Anonymous ,
Try
CALCULATE(COUNT(custid),FILTER(ALL(table),Reservation date>=TODAY()-28&&Reservation date<=TODAY()&&Cancellation Date=BLANK()))/CALCULATED(DISTINCT(Prodid),ALL(table))/13
It's better to share some sample data and expected result to us.
Best Reagrds,
Jay
Hi,
Share some data and show the expected result.
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
93 | |
93 | |
84 | |
81 | |
49 |
User | Count |
---|---|
145 | |
142 | |
111 | |
71 | |
55 |