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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
THHY
New Member

Calculated column with date filter

Hi everybody,

 

I am new here.

 

I have the following scenario.

My data comes from an OData feed.

There are 4 tables:

1. Item Entries (include all sold products)

2. Resource Entries (include all sold services)

3. User

4. DateTable

 

The releationship is as follows:

User -> Item Entries (1:*)

User -> Resource Entries (1:*)

DateTable -> Item Entreis (1:*)

DateTable -> Resource Entries (1:*)

 

Now I have created some calculated columns in the user table for example:

 

Total Sales Amount (product) = CALCULATE(SUM(Item Entries[Sales Amount]))

Total Sales Amount (service) = CALCUKATE(SUM(Resource Entreis[Sales Anount]))

 

Total Sales Amount = User[Total Sales Amount (product)] + User[Total Sales Amount (service)]

This is super simple and works fine, but how to set the date filter wich comes from the datetable.

 

Thx in advance

Thomas

 

 

 

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

You shouldn't be using calc columns. Take a read of my blog post on is topic. http://exceleratorbi.com.au/calculated-columns-vs-measures-dax/

 

write  them as measures and they will update with slicers. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

1 REPLY 1
MattAllington
Community Champion
Community Champion

You shouldn't be using calc columns. Take a read of my blog post on is topic. http://exceleratorbi.com.au/calculated-columns-vs-measures-dax/

 

write  them as measures and they will update with slicers. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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