Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hai Expert,
I need to creata a dax that will shows dash (-) when user choose year slicer 2023 onwards , this dash is to replace value null/blank for the year 2023 onwards.
Hi, @Julaiha
Here is the sample DAX based on your requirement.
Measure =
CALCULATE(
MAX('YourTable'[OriginalColumn]),
FILTER(
'YourTable',
'YourTable'[Year] < 2023
)
) & IF(MAX('YourTable'[Year]) >= 2023, "-", "")
Proud to be a Super User!
@Julaiha Is this required in a slicer or what? Share an image on what the requirement is.
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
72 | |
71 | |
51 | |
47 |
User | Count |
---|---|
45 | |
38 | |
33 | |
30 | |
28 |