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
saadghojaria
Frequent Visitor

Display data till current date only (used items with no data because nature of the data)

Hi Fabric community , 
I have these graphs connected to Calendar table and due to nature of the data I need to display until only current month data only. When I try to use filter wrto date column (Calendar table) it doesnt reallly help. Can someone please help on this would be super helpful. 

Graph A : Tables used AFR and Calendar 

saadghojaria_0-1740700215299.png

 

Graph B : Tables used Labor Hours , Calendar , CRP Table 

saadghojaria_2-1740700431728.png

 

 

saadghojaria_1-1740700358500.png

 


I tried this but I didnt really helped in my case not sure why. Remove months with no data BUT show all months between first and last dates even if blank 

 

Thankyou !!

1 ACCEPTED SOLUTION

Hi,

Here's what i got.  PBI file attached.

Ashish_Mathur_0-1740798655400.png

 


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

View solution in original post

8 REPLIES 8
HarishKM
Memorable Member
Memorable Member

@saadghojaria Hello,
Kindly follow below method--
1) you have to use below dax and this will limit data upto current month.

HarishKM_0-1740731764588.png

Dax - 

Data upto current date =

Var Currentmonth = TODAY()
Var Saleuptocurrent = CALCULATE(SUM(financials[ Sales]),FILTER(Calender,Calender[Date]<=Currentmonth))

RETURN
Saleuptocurrent



Hopefully this will fulfill your requirement.
 
Thanks
Harish M
Did I answer your question? Mark my post as a solution! Appreciate your Kudos 
lbendlin
Super User
Super User

Make your straight line measure return BLANK() for all future dates.

I tried to remove the straight line earlier but still couldn't solve the issue

saadghojaria_0-1740723987786.png

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi Here is the file you can download. Thanks again for taking time to help me really appreciate it. Also solution above @HarishKM provided seems not working for me. I have added that Dax too for the review. 
Items-with-no-data-example.pbix 

Hi,

Here's what i got.  PBI file attached.

Ashish_Mathur_0-1740798655400.png

 


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

Thanks Ashish , 
It worked for me !! 

You are welcome.


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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Solution Authors
Top Kudoed Authors