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
Anonymous
Not applicable

Snapshot data

Hello Community - Below is a modified sample of data extracted from our ERP system.    The accounts (40000, 40010, etc) are general ledger accounts.   In order to get a Month to Date value, in this case for total Februrary, I need to filter on a Create Date of March 2nd, and the As Of Date of March 1st.    The system always reports reconciled numbers one day behind.  

 

I can drag these into a table and get the total Feb result...but what I really want is a measure.    And I'd like to be able to apply this to all months...for example...to be able to put all months in a column chart showing the totals for each month.  

 

Problem is I don't know how to create a formula to do that?   Any help is appreciated.  

 

all revenue.png

1 ACCEPTED SOLUTION

@Anonymous 

 

You may apply virtual relationship in DAX measure.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

First, Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Second See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks Greg -

 

I had hoped posting the table would be enough.   But to elaborate:  

 

I have a date table with the "as of" date connected to the "dates" in the date table.  

 

I specifically need to connect to these particular accounts, but with the added challenge that our ERP system only reconciles the prior month on the 1st day of the next month.    So a final January number only becomes available the first day of February. 

 

Literally what I am trying to do is to achieve a measure that replicates the table below and shows the total sum  (which is cut off in the picture).    To do so, I somehow need to get at these specific accounts, and utlize the "create date" and the "as of" dates, and the "actual value".  

Annotation 2020-03-25 210612.png

 

all revenue.png

@Anonymous 

 

You may apply virtual relationship in DAX measure.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

Create a Calendar Table and build a relationship from the As of Date column of your Data Table to the Date column of your Calendar Table.  In the Calendar Table, write calculated column formulas to extract Year and Month.  To your visual, drag Year and Month from the Calendar Table.  Write this measure

=SUM(Data[Actual Value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur  I have this exact setup in my date table already.   

 

I like your approach as it is very simple, but it's not working because I think I need to grab those particular accounts from the Description field.    Your approach is causing Jan Feb and March to show gigantic numbers becuase I beleive it is summing all of the "actual value" data.     I only need the actual values from those specified general accounts from our accounting system. 

Hi,

Create a slicer of Account and select the ones youw want.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.