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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
B_kumar
Regular Visitor

Monthy expense report with daily and fix charges

How can i  build a store wise monthly report for total charges from below table_1 and table_2

total charges: = Table_1[Charges]+Table_2[Monthly charges]

 

Table_1

DateStoresCharges
01-Jul-22Store1350
01-Jul-22Store2100
02-Jul-22Store1500
02-Aug-22Store21200
03-Aug-22Store1200
03-Aug-22Store250
04-Aug-22Store150
04-Aug-22Store250

 

 

Fixed monthly charges for each month in table_2

Table_2

StoreMonthly charges
Store12000
Store23000

 

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your expected visualization looks like, but please check the below picture and the attached pbix file.

 

Picture1.png

 

Monthly charge measure: =
IF (
    SUM ( Table_1[Charges] ) = BLANK (),
    BLANK (),
    SUM ( Table_1[Charges] ) + SUM ( Table_2[Monthly charges] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

Hi,

Thank you for your feedback.

Table_1 is filtered by the calendar table, and a SUM function that aggregates Table_1 is influenced by the calendar table. However, Table_2 is not filtered by the calendar table in this data model, and a SUM function that aggregates Table_2 is not influenced by the calendar table, and it shows same amount in every month.

I hope this helps you to have better understanding.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your expected visualization looks like, but please check the below picture and the attached pbix file.

 

Picture1.png

 

Monthly charge measure: =
IF (
    SUM ( Table_1[Charges] ) = BLANK (),
    BLANK (),
    SUM ( Table_1[Charges] ) + SUM ( Table_2[Monthly charges] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks you for support, you did this so cleanly.

I am still learning the dax and just want to know how is it working ?

Hi,

Thank you for your feedback.

Table_1 is filtered by the calendar table, and a SUM function that aggregates Table_1 is influenced by the calendar table. However, Table_2 is not filtered by the calendar table in this data model, and a SUM function that aggregates Table_2 is not influenced by the calendar table, and it shows same amount in every month.

I hope this helps you to have better understanding.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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