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
Anonymous
Not applicable

Defaul

how to set default frequency as monthly and annually on a report
1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I created a simple table as below:

Annotation 2020-06-04 151703.png

Then create a measure as below:

 

Current Month Data = 
IF(ISFILTERED('Table (2)'[Month])||ISFILTERED('Table (2)'[Year]),SELECTEDVALUE('Table (2)'[Sales]),IF(MAX('Table (2)'[Month])=MONTH(TODAY())&&MAX('Table (2)'[Year])=YEAR(TODAY()),MAX('Table (2)'[Sales]),BLANK()))

 

And you will see: (When you open the .pbix file,it will show):

Annotation 2020-06-04 151936.png

When you select May,it will show:

Annotation 2020-06-04 152030.png

For the related .pbix file,pls click here.

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
See if this can help

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Appreciate your Kudos.


Anonymous
Not applicable

I have created a report whenever we have opened that report the data should be displayed current monthly data or current yearly data.

After that by selecting year or months we can select the as we want. 

Hi @Anonymous ,

 

I created a simple table as below:

Annotation 2020-06-04 151703.png

Then create a measure as below:

 

Current Month Data = 
IF(ISFILTERED('Table (2)'[Month])||ISFILTERED('Table (2)'[Year]),SELECTEDVALUE('Table (2)'[Sales]),IF(MAX('Table (2)'[Month])=MONTH(TODAY())&&MAX('Table (2)'[Year])=YEAR(TODAY()),MAX('Table (2)'[Sales]),BLANK()))

 

And you will see: (When you open the .pbix file,it will show):

Annotation 2020-06-04 151936.png

When you select May,it will show:

Annotation 2020-06-04 152030.png

For the related .pbix file,pls click here.

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

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.