Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I have the following tables with date slicers and 2 different dates selected. I would like to create a measure that shows the difference in sales between the tables. the result shoud be 2 (1001-1003). How can I achieve that? Thank you so much!
Solved! Go to Solution.
Hi @EsterBR ,
I made simple samples and you can check the results below:
Measure 2 = var _s1= SELECTEDVALUE('Table 2'[Date])
var _s2= SELECTEDVALUE('Table 3'[Date])
RETURN SUMX(FILTER('Table',MONTH([Date])=MONTH(_s1)),[Value]) - SUMX(FILTER('Table',MONTH([Date])=MONTH(_s2)),[Value])
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @EsterBR ,
I made simple samples and you can check the results below:
Measure 2 = var _s1= SELECTEDVALUE('Table 2'[Date])
var _s2= SELECTEDVALUE('Table 3'[Date])
RETURN SUMX(FILTER('Table',MONTH([Date])=MONTH(_s1)),[Value]) - SUMX(FILTER('Table',MONTH([Date])=MONTH(_s2)),[Value])
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @EsterBR
Please refer to my solution in the linked discussion, it includes a pbix to follow :
you should apply the same logic on date tables.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @Ritaf1983, Thanks for the answer but unfortunately I cannot create the same data model in my dashboard.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
85 | |
82 | |
64 | |
62 | |
56 |
User | Count |
---|---|
171 | |
112 | |
110 | |
72 | |
72 |