Forum Discussion
Date time filter issue
- Anonymous4 years ago
Hi Alia2022 ,
According to your statement, I know you create relationships between Date/time columns between two tables. Then Vi_cons and WW_1 will only show total sum. However Data set1_TT nr filter is working.
As MikeJohnsonZA mentioned before, we need two date/time be the same then Power BI will filter correctly. Do you want to get sum of Vi_cons and WW_1 in "Data Set2" based on Date filter and _TT nr filter?
Add only Date columns in two tables, build relationships between only date columns and create the sum by measure.
Here I build an active relationship between [Only Date] columns and an inactive relationship between [TT nr].
Measure:
M_Vicons = CALCULATE(SUM('Data Set 2'[Vi_cons.]),USERELATIONSHIP('Data set 1'[TT nr],'Data Set 2'[TT nr]))M_WW_1 = CALCULATE(SUM('Data Set 2'[WW_1]),USERELATIONSHIP('Data set 1'[TT nr],'Data Set 2'[TT nr]))Result is as below.
You can download my sample to learn more details.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Rico Zhou,
Thanks for the hint. Now, its looking good. I tried it and it's working good.
Again many thanks.
BR
Ahsan