Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
For example i have total amount column and i have two other columns as start date and end date. How can i use there start and end date columns as filters so that when i choose any of those the total amount column dynamically changes with choosing either start date or end date column. Is that possible in any way.
Thanks
@samoberoi ofcourse that will happen, I provided based on the question you asked, then easier is to use field parameters:
create two measures as shown below and then create a field parameter and include these two measures in the field parameters then you can use the field parameter in the visual and also in the slicer:
Start Date Amount = SUM ( Table[Start Date Total Amount] )
End Date Amount = SUM ( Table[End Date Contract Amount] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@samoberoi this makes more sense. You need to unpivot your data which you can easily do in PQ. If you have other columns in your table, select all those columns, right-click, and unpivot other columns. If you have only these four columns in your table, add an index column in PQ select this index column, right click and unpivot other columns.
Once unpivoting is done, you will get two columns, attribute and value, rename these as you see fit. Close and apply.
You can use attribute columns in the slicer and value column to show the total and easily work with this.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi,
It doesn't work, i am afraid. When i try to unpivot the columns most of the columns from the table just disappear on PBI desktop and all the measures previously created come up showing error as well.
Thanks
@samoberoi I think I know what you are looking for but before I provide any solution, can you paste sample data with the expected data based on the selection?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi Parr2k,
start Date End Date Start date Total amount End date contract amount
01/01/2008 31/07/2010 £40,000 £26,530
28/02/2008 06/09/2011 £50,000 £9230
30/04/2009 09/09/2013 £10,000 £5028
31/07/2009 05/04/2020 £1000000 £10000
09/08/2010 09/11/2016 £980000 £250
----------------------------------------------
£2080000 £51038
Here is an example of using Start Date and End Date column names as filters, so if i would click on Start Date highlighted in red, assuming it would be a filter, it should give me the total of Start Date column only and similarly if i click on End Date, assuming as a filter here, it should give me total for End date column only.
Thanks
Sam
Hi @samoberoi ,
As far as I know, if you want to filter the data same as selected Start Date and End Date. You can use [Start Date] and [End Date] to create two slicers directly.
Do you want to filter the data in the range of Start Date and End Date? Then you will meet a issue that there could only be an active relationship between two tables.
Measure:
Measure = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Start Date]<=MAX(DimDate[Date]) && 'Table'[End Date]>=MAX(DimDate[Date])))
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
Not really. I don't want to filter the data between the chosen date from the start date column and chosen date from the End date column. However, i want to know if i can create the Start Date (Name of the column) as a filter, so that on clicking this name (Start Date) it will dynamically give me the results for Total amount column specific to the Start Date column and similarly for the End Date.
Hope i could explain it a bit better this time and sorry for confusing everyone before.
Thanks
Hi,
In the Query Editor, you should create one row for each date which falls between the start and end.
Hi Ashish,
Sorry, i couldn't understand what you mean by creating one row for each date and how will that work out. Apologies, i couldn't explain it before, i want the column names of Start date and End date to be used as filters. So, if i could make Start date name of the column as a filter and click on it, it should only give the results of Start Date in the Total amount and same for End date column name.
Thanks
Hi,
With there be 2 dates columns, you will not be able to create ne slicer from dates in both those columns. My suggestion is that we explode the table into a numebr of rows where each row will containe each date which falls between the start date and end date.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.