Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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 gurus,
Please advise what's the best solution to pass the selected date to a table?
I am able to get the result of the selected value as date however it doesn't seem to be passing it correctly.
@Anonymous
I confused with the table and expected output. This is what I have now. I create a distinct table as the slicer, then create a variance measure.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Hi Paul,
Thanks for simulating my model. In the pbix that you've created, the variance was computed based on the "date" column. My requirement is to compute the variance based on the reporting date on each date. There should only be 1 variance column as per my output.
So if we go back to my output, in my slicer if I select 09/05 & 06/05.
You will see there that there is a variance shown as only 1 column; i.e., it is subtracting the 9/05/2021 value - 6/05/2021 value.
***** Note: I need these dates to be dynamic in such a way that if I select from my slicer 2 dates, it will reflect my columns as those selected dates and the variance should automatically subtract reporting date 1 - reporting date 2.
Thank you.
@Anonymous
Selection made from the report slicers is not visible to the data model when you create a table.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy,
Thanks for your reply. You've got the same answer as @amitchandak where I can't achieve what I'm trying to do with the table. Now I'm back at square 1 where I needed to get the variance of the the data on the rows as per the selected values in the slicer. Any suggestion for this?
@Anonymous , example
measure =
var _tab = summarize(filter(all(Table), Table[customer] in allselected(Table[Customer])),Table[product])
return
calculate(coutrows(Table), filter(all(Table), Table[product] in _tab))
Sorry, I'm still confused. Where do I pass my Selected Day1 using the var table?
Hi @amitchandak,
Thanks for your quick reply.
Is it possible for you to to give an example in the context to what I am trying to build please? I haven't tried using var table.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
74 | |
57 | |
39 | |
33 |
User | Count |
---|---|
71 | |
66 | |
57 | |
49 | |
47 |