cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

How to display last N months data?

Hi,

 

I am trying to display last 6 months data using a new Measure of a seleted Date. However, it returns with cummulative result of the last 6 months instead of showing last 6 months' data. Appreciate if anyone can help?

 

Measure =

CALCULATE(calculate(count(Tracker[ID]), DATESINPERIOD(DIMDate[Date],max(DIMDate[Date]),-6,Month)))
 
Data:
Count of ID.PNG
 
Result (If I select 2020-12, table below showing 3 which is cumulative data from Jul'20 to Dec'20)
Measure by selected month.PNG
 
Date Slicer (From Date Table):
Date.PNG
 

I've two simple tables:

Table.PNG

 

Thanks!

 

 

 

3 REPLIES 3
lbendlin
Super User
Super User

Most likely you need to use a disconnected table to feed your slicer.

 

Please provide sample data in usable format and show the expected outcome.

Anonymous
Not applicable

HI @lbendlin , any clues on what could have went wrong in my dashboard? Grealy appreciated if you can help. 

Anonymous
Not applicable

Hi @lbendlin 

 

Sample data is as per link: 

https://1drv.ms/u/s!Atu2ybW156OGgQO9RJqZfflmvpnS?e=l9OYNe

 

Current Result:

Current Result.PNG

Expected Result:

Expected Result.PNG

 

Thanks!😉

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors