Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Mirna
Frequent Visitor

Calculate Transactions

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?

 

Mirna_0-1628234990847.png

 

Thanks

M

2 REPLIES 2
Ashish_Mathur
Super User
Super User

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

- 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.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.