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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CRamirez
Advocate II
Advocate II

Roll over to new month after first non-blank day occurs in new month, otherwise show previous month.

I have a daily dashboard that displays current month information. It borrows visuals from about 6 different reports, some with varying refresh periods (live vs. daily). The visuals that are tied to once-daily refreshed reports always appear blank on the first day of a new month. This is due to the reports utilizing "is in this month" relative date filtering.

These visuals will not get data for the current month until the next day so I would like to display the previous month's data until the data for the new month is loaded. In addition, once I have data for the new (current) month, I would then like for the previous month to disappear.

 

I attempted using a variation of DATESBETWEEN and LASTNONBLANK, but the measure was returning a cumulative total for the previous month. I need it to only display daily data and not SUM multiple days together.

 

To give you an idea of my data structure, I have a date table connected to a singular fact table that contains inventory information daily.

 

Any help on this problem would be much appreciated

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @CRamirez,

 

If you want to dynamically display data in current month and previous month based on a specific scenario, per my knowledge, you have to use measure. But, the values wrapped in a measure have to be aggregated with functions like SUM, MAX, etc. If you just use a table visual to display meta data (without any aggregation, just original fields) from dataset, it is not possible to achieve the requirement that show previous month's data on first day of month while display current month's data when new data is loaded.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.