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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to show selected date and pervious date data

Dear 

 

If i choose date from Filter then i want to show selected date data and pervious date data 

 

For example

 

if i choose 22-03-2020 then i want to show 22nd  and 21st data separte, right now i can get only which i selected date data 

 

 

 Date.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Dear, I have found myself, i created two measures and its worked perfectly. Current CCBM = VAR COne = If (Contains (MeasureBy,MeasureBy[Selection],"CBM-EQ") = TRUE() , CALCULATE(sum(prod_day_analy_rpt_bi[CBM]),FILTER(Proddate,Proddate[Proddt])), BLANK() ) Previous PreviousData = VAR PCBMOne = If (Contains (MeasureBy,MeasureBy[Selection],"CBM-EQ") = TRUE() , CALCULATE(sum(prod_day_analy_rpt_bi[CBM]),PREVIOUSDAY(Proddate[Proddt])) , BLANK() )

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi @Anonymous , 

You need to create a slicer which doesn't have relationship between fact table, you could refer to my sample for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear, I have found myself, i created two measures and its worked perfectly. Current CCBM = VAR COne = If (Contains (MeasureBy,MeasureBy[Selection],"CBM-EQ") = TRUE() , CALCULATE(sum(prod_day_analy_rpt_bi[CBM]),FILTER(Proddate,Proddate[Proddt])), BLANK() ) Previous PreviousData = VAR PCBMOne = If (Contains (MeasureBy,MeasureBy[Selection],"CBM-EQ") = TRUE() , CALCULATE(sum(prod_day_analy_rpt_bi[CBM]),PREVIOUSDAY(Proddate[Proddt])) , BLANK() )
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, you can generally work around these kinds of issues by using something like ALL, ALLEXCEPT or REMOVEFILTERS and then filtering back down to what you want.



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...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors