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
jyaul786
Helper II
Helper II

Last three day

i have fact table with data by date, fact table is related with calendar table. and i need to get sum of last three day value based on date slicer(from calendar table).

Fact Table:

Datevalue
10/12/20231
07/12/2023 2
06/12/2023 3
05/12/2023 4
04/12/2023 5
03/12/2023 6
30/11/2023 7
29/11/2023 8
28/11/2023 9
27/11/2023 10
26/11/2023 11

 

when i select date like range2:  then

jyaul786_0-1703412696011.png

result=1+2+3, 

 

when i select date like range2(8/12 or 9/12):

jyaul786_1-1703412810850.png

result=2+3+4.

 

how can i achieve , could you please help ?

1 ACCEPTED SOLUTION

happened

pls try this

Screenshot_3.png

View solution in original post

6 REPLIES 6
Ahmedx
Super User
Super User

need to create an unrelated table

Screenshot_1.png

i cant create unrelated table, i have many table related with calendar table using as Dates slicer from calendar table. do you have any other way then please help me ? thanks

pls try

 

Hello,

Thanks for your help, its working fine. Could you please do one more favour for another measure: when i select date range1 like:

jyaul786_1-1703485306122.png

the result_min = 6+7+8

 

and date range1 like:

jyaul786_2-1703485378789.png

result_min=3+4+5

 

How can i achieve this ? please help me.

Thanks

 

 

happened

pls try this

Screenshot_3.png

Now it won’t work without an unrelated table since the date range does not fit into the slicer range

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.