Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi everyone,
Hope you guys are doing great. I am new to POWER BI, I want to implement one thing that if i have admissions data that contains admission ID and a DATE Column that contains date in this format (dd-mmm-yy) so, I would like to display a line chart that contains Admissions on a monthly basis and also 1 year back data.
For eg: Now it is April 2020 so I want the data to publish in a line chart is of Mar 2020 to Apr 2019.
@BA_Pete , @az38 , @parry2k , @amitchandak
Can somebody please look into this ?
Thanks !
Solved! Go to Solution.
Hi @Anonymous ,
You could create a measure and add it in the filter pane.
Measure =
var a = DATEDIFF(SELECTEDVALUE('Table'[Date]),TODAY(),MONTH)
return
IF(a<=12,1,0)
Then set the rule to show the result whose measure is 1.
Hi @Anonymous ,
You could create a measure and add it in the filter pane.
Measure =
var a = DATEDIFF(SELECTEDVALUE('Table'[Date]),TODAY(),MONTH)
return
IF(a<=12,1,0)
Then set the rule to show the result whose measure is 1.
Hi @Anonymous
You can get the month dimension in your table by adding the following column to it:
monthNameShort =
FORMAT( Table[Date], "MMM" )
or
monthNameLong =
FORMAT( Table[Date], "MMMM" )
Then you can either use the Relaive Date Slicer if you want end users to adjust time period, or you can use the 'Top N' filter on the visual itself. You would filter on monthNameShort, Top N, Top 12, by Latest [Date].
Pete
Proud to be a Datanaut!
Hi @BA_Pete ,
I got your point but I can't use relative date slicer as it hampers my UI, I don't have to change my UI, Have some UI Constraints as well.
Need to do something by measure or creating column.
Thanks !
No problem.
Just add the monthName column, use this as the chart axis, and then use the visual-level filter to do the Top N solution I mentioned.
Pete
Proud to be a Datanaut!
If you date has been detected as date you can use relative date slicer
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |