Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all!
I have a table that shows names (text type) according to the selected year.
Is there a possibility that if I don't select any year in the slicer it will show me the names of the current year in the table?
Thank you!
Regards!
Solved! Go to Solution.
Hi @tutuk28 ,
You can create a measure as below and add it to visual filter.
Measure =
var selected_year = IF(ISFILTERED('date'[year]),SELECTEDVALUE('date'[year]),YEAR(TODAY()))
return
IF(SELECTEDVALUE('Table'[year])=selected_year,1,0)
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@tutuk28 , not sure what you mean by table.
You can show year like
Measure = year(Today())
data measure
This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=today())))
Hi @amitchandak !
I have a table visual that only shows names of people (Text type).
These names are in my fact table that is related to the time dimension.
In this page I have a slicer where you can select years and according to the selected year the people will change.
I want that if there is nothing selected, it shows me the names of the current year and not all the names that exist.
In the way you have proposed in your answer it could not be done.
Thanks !!
Hi @tutuk28 ,
You can create a measure as below and add it to visual filter.
Measure =
var selected_year = IF(ISFILTERED('date'[year]),SELECTEDVALUE('date'[year]),YEAR(TODAY()))
return
IF(SELECTEDVALUE('Table'[year])=selected_year,1,0)
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |