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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
CK1
Regular Visitor

Matrix Help- Cash Basis Analysis

Hey,

 

I am hoping someone may have run into this scenario and knows of a relatively easy way to solve this. I work in the healthcare industry and I am trying to put together an analysis to see what amount of payments were received for a specific service date period. For example, if I provided $50k in services in January, but the payments for those services didn't come in until March I want to know how much I received relating to Jan services. Here is a quick grid example: 

 

CK1_0-1699395748236.png

 

Is there an easy (ish) way I can set this up in power BI?

 

Thank you!

 

 

 

3 REPLIES 3
CK1
Regular Visitor

Yes, I do have a date table set up, here is a snip from the data I'm trying to include in the table. right now I have the service date field linked to the date table in a one-to many relationship. I linked the service date rather than the posted date because that will be the same dates I want to use to organize my charges. 

 

Data table: 

 CK1_0-1699451156991.png

 

Date Table:

CK1_1-1699451184640.png

 

vanessafvg
Community Champion
Community Champion

you will need to add another relationship between the 2 tables.  This will be between posted date and date in the date table.   The relationship will be inactive ie dashed.

 

in order to activate that relationship in your measure ie payments you just point to the inactive date relationship by using the userelationship function.

 

so it would look something like this (after creating the additional relationship)

payment by service date =
SUM ( table[payments] )

payments by payment date =
CALCULATE (
[payments by service date],
USERELATIONSHIP ( table[postedDate], date[Date] )
)

then when you plot your date from the date table, it will bring back both measures plotted on the same date.   





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




vanessafvg
Community Champion
Community Champion

do you have a date table?  please can you give a sample of what you date looks like and if you have a date table and the relationhships you have between table





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.