Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am having treouble creating a measure:
I have a table with the information below. I want to know the Total number of Cage installations that were completed (date completed) during the same month of the Job site Start date.
In the example below it will be 1 only.
There are 5 purchase order numbers in the month of May but only one cage install was completed during the month of May.
Can you suggest something?
Thanks
M
Hi,
Here's one crude way without creating a Calendar Table. Write a calculated column formula (column title is month-year check)
month-year check = format(Data[job site start date],"mmyy")=format(Data[Date completed],"mmyy")
Write this mesure and drag it to a card visual
Measure = calculate(sum(data[cage installation]),data[month-year check]=TRUE())
Hope this helps.
- add a calendar table to your data model
- create an active relationship to the Job Site Start Date
- create an inactive relationship to the Date Completed
- write a DAX measure with USERELATIONSHIP() to change the data model for that calculation.
User | Count |
---|---|
114 | |
73 | |
57 | |
47 | |
38 |
User | Count |
---|---|
170 | |
121 | |
59 | |
58 | |
55 |