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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Missing value

Hi guys,

 

I would like to calculate sum of "Transportation Charge" by againsted between month and previous month.

However, the result shows only "__TR Cost This Month" while the sum of previous month isn't display by monthly "__TR Cost Last Month".

 

Remark:  in the table, it has the sum total of "__TR Cost Last Month" which is correct result.

 

BillyAshwinSha_0-1709531890906.png

 

Please help me to find out this problem!

Thanks,

Billy.

4 REPLIES 4
Anonymous
Not applicable

Hi @PijushRoy 

 

Thank you for suggestion.


The Unit (Adjust) is column.

I've tried to use DATEADD instead of PARALLEPERIOD but result is still the same.

BillyAshwinSha_0-1709540649608.png

 

Do you have any other solution?

 

Thanks

Billy

Hi @Anonymous 

Please share the DAX for "_TR Cost This Month"
Try this, confirm that Date is date datatype

 

_TR Cost Last Month = 
VAR _LastMonthSales = CALCULATE(
SUM([Value]),
FILTER('Append1','Append1'[Units (adjust)]="TR Charge"),
DATEADD('Append1'[Date],-1, MONTH)
)
RETURN _LastMonthSales

 

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Anonymous
Not applicable

Please find the DAX of "_TR Cost This Month" as below

 

__TR Cost This Month =

CALCULATE(
    SUM([Value]),
    FILTER('Append1', 'Append1'[Units (adjust)] = "TR Charge")
)

 

 

PijushRoy
Community Champion
Community Champion

Hi @Anonymous 

is Unit (Adjust) measure? Please use column ref for filter
Please create a table and check if there any value for your filter criteria "TR Change"
In place of PARALLELPERIOD can you  use DATEADD


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors