Power Bi: limit slicer to values that exist in fact table - powerbi

I have 1 Fact Table Tbl_Import in my Pbix-file that is linked with an automatic generated calendartable.
I used a slicer and a table. The slicer is showing too much options. The first date in Tbl_Import is 16/12/2022, but in the slicer I have all the other months also.
Is there a way to limit the slicer options to the actual dates in the facttable?
I am using Power Bi Desktop (without Premium).

Yes. Create a measure which is
Measure = COUNTROWS(Tbl_Import)
Add the measure as a visual filter to the slicer with it restricted to showing a count > 0.

Related

Power BI: How to Create a Matrix with Row Headers = Data label, Column Headers = Measures

I have a dataset consist of two time series: e.g. Historical stock prices for Apple and Microsoft. And I have a few different power BI measures created for each of these two stocks (e.g. Weekly Return, Monthly Return).
I want to create a "Matrix"-like visual, to show:
stock names as the row headers
measures as the column headers
values being the corresponding measure value for the given date selected on a date slicer
To illustrate what I want to do, please see the picture from Excel as an example. Is there a convenient way to do this in Power BI?
Thank you very much for your help!
Excel illustration on what the visual should look like in Power BI

Totals in table visual is not shown in power BI

I'm using powerbi desktop version and I've added a measure as a column in the table visual.
Enabled totals as well but unfortunately I'm not able to see the total value of that particular column to be displayed.
The same table contains several other measures for which the total appears but not for one particular column. This has data type decimal number.
Any suggestions?
TIA!!!

Time slicer for different visualisations in Power BI

I want to change visualisations with a time period slicer.
This is an example of a page for a single month of data. I would like to have a time slicer that would allow me to select different months/time periods and show me the relevant data.
I thought about using buttons with bookmarks to be able to click between different months, but it is not feasible when more months come in. All the guides on the internet show how to change visualisations with time as an axis, so I don't know where to look.
Please let me know if there is a better way to do this!
In your data sources add separate column for date (or you can use existing column for that)
Next you have to create calendar from power bi or insert excel sheet, Its better to create calendar from power bi.
Then you need to make sure all the date columns are in date format. And make relationship between columns.
power bi desktop
Drag and drop created date column to the calendar column.
Then you have global slicer that affect to your selected visualization.
From slicer you can change slicer visualization as you want

Slicers showing all values - Power BI Desktop

I have a table in Power BI Desktop which has multiple columns (5 Dimension data connected with a Fact table - Star Schema).
I have now added 3 Slicer to filter data in above table but when I select the first slicer then the other slicers should show only available dimensions data but it is showing all the available data.
I tried changing Cross filter Direction to both from single in Manage Relationship but it works for only one column but not to all with the below error or warning message.
NOTE: I do have few more Pages in the same Visualization report which contains separate fact table with same dimension keys.
Please let me know how to resolve this or any other suggestions.
Use the following measure to filter through your dimensions
Cross Filter = INT( NOT( ISEMPTY( 'Your FACT TABLE') ) )
Then dragg this measure in every slicer into the filter pane and select the option is equal to 1.
My power bi version is in spanish but you will get the idea.
----------------------------------------

Power BI -- Line chart -- Basic filtering -- Require single selection

I have a Line Chart in Power BI. I'm doing basic filtering on the year, so it shows all years between 2013 and 2020. I want the chart to only display one year at a time, so I check the Require single selection box. But is there a way to have it select the year dynamically based on the result of a measure?
you can define a filter on "visual level" either based on a measure or a calculated column.
If the visual is of type slicer you can only use a calculated column and not calculated measures.
E.g. if you create a calculated column "isCurrentYear" in your date table you can use that for filtering. based on which criteria you want to choose the year?