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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
abhi8569
Frequent Visitor

Need help in defining a measure

Hello All,

 

I have a data model which looks something like this:

Billing same as invoice .png

 

 

 

 

 

 

 

 

 

 

 

 

 

My requirement is to count the number of Invoice Number that satisfies following logical expression:
InvoiceDate(InvoiceMonth) == BillingDate(Billing Month) && InvoiceDate(InvoiceYear) == BillingDate(Billing Year)

 

I am not sure if that's even possible given how data is modelled. Kindly help me out in writing a DAX measure.

 

The Billing Date table contains three billing dates corresponding to previous, current and Next Billing date for each customer. Invoice Detail table contains informatrion of all the invoices generated for the customers.

 

Thank you!

 

1 REPLY 1
RMDNA
Solution Sage
Solution Sage

Hi @abhi8569 - the way you've drawn it, is the relationship between Customer Detail and Billing Date going in the wrong direction? I would imagine BillingDate is a date table with unique dates, so the 1: should be on that side.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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