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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.