Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 |
1 | 15-Jan-21 | |
2 | 20-Feb-21 | 20-Mar-21 |
3 | 01-Jan-21 | 20-Mar-21 |
4 | 10-Jan-21 | 28-Apr-21 |
Answer should be:
Feb-21 | 4 |
Mar-21 | 2 |
Apr-21 | 1 |
I tried countrows and filter, but cannot get it to work.
This does not work:
Open = Calculate(CountA('Position Open'[ID]),Filter('Position Open',(Month(‘Position Open’[Open])<=Calendar(Month) && Year(Position Open’[Open])<=Calendar(Year) && isempty('Position Open'[Close]) || Month('Position Open'[Close]) > Calendar(Month) && Year(Position Open’[Position Open Date])>Calendar(Year))
Thanks for any suggestions.
Solved! Go to Solution.
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
Proud to be a Super User!
@Ryks
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
Great solution.
I however, have relationships on my table.
Active - Open to Calendar Date and inactive with Close.
you can try this
Measure =
CALCULATE(COUNTROWS('Table'),FILTER('Table',('Table'[Close]>max('Date'[Date])||ISBLANK('Table'[Close]))&&'Table'[Open]<max('Date'[Date])))
pls see the attachment below
Proud to be a Super User!
you are welcome
Proud to be a Super User!
Hi @ryan_mayu
The reason why my data does not work, is that I have a active relationship between calander date and inactive relationship between calander date and close. I am playing around with
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
Proud to be a Super User!
you are welcome
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
82 | |
48 | |
48 | |
48 |