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 All, I recieve an excel report with various KPIs are rows and the months as columns (see below for illustration) . I currently have a gauge dial to report on the current month vs goal but this requires manual input (As in I have to deselect the previous month and select the current month each time I recieve the report). Is there a way for power bi to automatically recognize the current month and update my visualization when new data is refreshed?
Name | Jan 2020 | Feb 2020 | March 2020 | Goal |
KPI 1 | ||||
KPI 2 | ||||
| KPI 3 |
Thank you all for your advice!
Hi, @Anonymous
If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.
Best Regards
Allan
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Table:
You may create two calculated columns as below.
Month-Year = VALUE(FORMAT('Table'[Date],"yyyymm"))
Flag =
var _currentmonthyear =
IF(
MONTH(TODAY())<10,
VALUE(YEAR(TODAY())&"0"&MONTH(TODAY())),
VALUE(YEAR(TODAY())&MONTH(TODAY()))
)
return
IF(
'Table'[Month-Year]=_currentmonthyear,
1,
0
)
Then you need to set visual level filter as 'Flag' = 1 to display the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can use a Relative Time filter (or slicer). Please see this post.
https://www.bdo.com/digital/insights/analytics/how-to-use-relative-filtering-in-power-bi
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |