The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi everyone,
My dataset includes 3 columns, 1)case id 2)repair arrived date 3)repair finished date.
I want to combine the two different dates and the number of the cases in the same graph. I created a Date table in PowerBI, I chose the "repair arrived date"to be the active relationship for the date and I want to count the number of the cases that arrived and finished each month. How can I write my DAX function? Thank you.
Create an inactive relationship from date to the finished date column and you can use
Num finished =
CALCULATE (
COUNTROWS ( 'Table' ),
USERELATIONSHIP ( 'Date'[Date], 'Table'[Finished date] )
)
Num arrived would be a simple COUNTROWS('Table')
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |