Add more year on hierarchy slicer power bi - powerbi

I have a dashboard and it's connected with my sql database. On the table, the data already updated untill 12/31/2023. How can i add more year to my hierarchy slicer?
I already try refresh the entire table, it's showed in preview table, but it's still stuck in hierarchy slicer.

My bad, i didn't check 2023 year on the filter page.

Related

Power BI Real Time Scenario from Client

I want to my whole report to show data on latest month once data get's added. How to do in Power BI?
I tried at report level filter, Also I am expecting whether it can do from DAX
You can use a filter to limit the data displayed in your report to the latest month.
First, create a calculated column that extracts the month from the
date column in your data.
Next, add a filter to your report and choose the option to "filter by a relative date".
Set the filter to only show data where the month equals the maximum month extracted in step 1.
Once you have set the filter, your report will automatically show data for the latest month as new data is added to your dataset.
To refresh the report, you can right click on the report and select the refresh button
It's basic method you can use to filter by latest month

Power BI slicer based on date

I am struggling to manage to set up a slicer in Power BI on date column.
The problem I have is that I have a table with SalesDate so I created a table with client name and date of last sale.
Then I added a slicer on date column and here I am stuck.
I would like to be able to mark date into a slicer so the table returned me all the customers who DID NOT buy anything from a specific amount of time: last three months for example.
By default slicer shows me those transactions who did happen in the period I provide to a slicer.
Can I do it in anyway?

How to pull the latest records from sql table to POwer BI dashboard.?

I am a beginer to Power BI
I have loaded an sql table to power BI dataset. The table keeps udating with new records frequently. How can I always pull the data of the latest five records into the dashboard. There as id no which keeps growing with the no of rows.
another question, how can I show the dashboard specific to the current working day only? There is date stamp in the sql data. How can i use it? With filter I am able to select a particular date but to set it to current day or last week etc.
Thanks in advance.
If your data doesn't contain any field which would tell you, what then latest rows are, the there's not much you can do here. Apparently you have some sort of timestamp there, so a query something like this could work as the datasource for your report:
SELECT TOP 5 field1, field2... FROM Table ORDER BY Timestamp DESC
To your second question, you can add a reletive date filter: https://learn.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

SSAS Tabular Model & Power BI - Week filtering in report

I created an SSAS Tabular Model in VS2017 and the model has a Date Table.
In the Data Table, I have measures to obtain the current week of the selected day (for my model, always TODAY()), and the weeks start on Monday and end on Sunday.
In my Power BI report I want to filter an entire page by the current week but if I use the "Relative Data Filtering" coming along with Power BI, the week starts at Sunday and ends on Monday. This leads to an error in the data display.
Now, the SSAS Tabular Model is deployed to an Azure Analysis Services server, and the Power BI report connects to this. In this case, I am not able to configure in Power BI any regional settings.
How can I filter an entire report page by the formatted week I have?
Thanks in advance.
Similar to this question, you can create a calculated column on your calendar table, Dates, to determine which dates to include or exclude.
Dates[IncludeDate] = IF( Dates[Date] >= [StartOfWeek] && Dates[Date] <= [EndOfWeek], 1, 0 )
Then use Dates[IncludeDate] is 1 as your filter.

Relating a Date Slicer from a different table for Filtering in Power BI

Currently, I have about three tables in my Power BI report.
1. First table lists retailer records for the year 2016. (Columns: CompanyID, Company, FullAddres, Status). So this would list records for the year 2016 from January 1st to december 31st
2. Second table is same as above but for the year 2017.
3. Third one is a Date Table I have created in sql server and then loaded in the power Bi.
I created visualizations along with some calculated measures. The goal is to use the DateTable as a slicer and upon filtering the Week Ending date in the slicer it should reflect the results. so basically DateTable has week ending date as a column and using which we i want to filter the results.
I have created Relationship of Date Table with other two tables but unfortunately when i filter, it doesn't work fine. Kind of results in 0 results.
The relationship of DateTable with both the tables is created as Many to one with cross filter direction set to both.(tried with single as well)
How should i make some changes so that i can use WeekEnding Date from DateTable as a slicer? Any help will be appreciated.