Forum Discussion
Ryks
5 years agoFrequent Visitor
Dax - Filter by 2 date columns - Metric
Hi I hope somebody can help me. Question: How many order were open per month. I have a date table - Calendar(Date) that has an active relationship with Open. Data set ID Open Close...
- 5 years ago
you can modify the measure by adding ALL function
Measure = CALCULATE(COUNTROWS('Table'),FILTER(all('Table'),('Table'[Close]>max('Date'[Date])||ISBLANK('Table'[Close]))&&'Table'[Open]<max('Date'[Date])))pls see the attachment below
Greg_Deckler
Community Champion
5 years agoRyks
Take a look at these two Quick Measures as I think you want something like them.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365
Ryks
5 years agoFrequent Visitor
Hi Greg_Deckler
Great solution.
I however, have relationships on my table.
Active - Open to Calendar Date and inactive with Close.