Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Defaul

how to set default frequency as monthly and annually on a report
  • Hi Anonymous ,

     

    I created a simple table as below:

    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):

    When you select May,it will show:

    For the related .pbix file,pls click here.

     

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

3 Replies

    • Anonymous's avatar
      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. 

      • v-kelly-msft's avatar
        v-kelly-msft
        Community Support

        Hi Anonymous ,

         

        I created a simple table as below:

        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):

        When you select May,it will show:

        For the related .pbix file,pls click here.

         

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