Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi!
I've trying to make a slicer with a numbers of days (1 - 10) which I want to add to a date column, so the user can see the sum for the day + 1-10 days.
The number of days I've just added in a not related table, so I was thinking of using HASONEVALUE, but it's not working.
The formel I'm trying to use is;
I'm using direct query to my data
Can anybody help me
Solved! Go to Solution.
@Uhan1101 , If you try add that to new column that is not possible. In case of measure you can try
if(Isfiltered('Dage'[Antal dage]) && HASONEVALUE('Dage'[Antal dage]), Max(Table[Date])+ Selectedvalues('Dage'[Antal dage]) , Max(Table[Date]))
You can use one of the two as per need isfiltered or hasonevalue
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Hi @Uhan1101 ,
I created some data:
Here are the steps you can follow:
1. Select Modeling – New Parameter.
2. Create measure.
Measure =
MAX('Table'[Date]) + [Slicer_Day Value]
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Uhan1101 ,
I created some data:
Here are the steps you can follow:
1. Select Modeling – New Parameter.
2. Create measure.
Measure =
MAX('Table'[Date]) + [Slicer_Day Value]
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Uhan1101 , If you try add that to new column that is not possible. In case of measure you can try
if(Isfiltered('Dage'[Antal dage]) && HASONEVALUE('Dage'[Antal dage]), Max(Table[Date])+ Selectedvalues('Dage'[Antal dage]) , Max(Table[Date]))
You can use one of the two as per need isfiltered or hasonevalue
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
16 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
8 |