Forum Discussion
Defaul
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,
KellyDid I answer your question? Mark my post as a solution!
3 Replies
- amitchandakSuper 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 helphttps://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Appreciate your Kudos.- AnonymousNot 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-msftCommunity 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,
KellyDid I answer your question? Mark my post as a solution!