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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello Team,
I want to calculate a SUM(Total clicks) such that it can change as and when my date slider changes.
And then, calculate " %linkclicks/Sum(total clicks)" such that this measure changes with the change in my date slider.
So, essentially I need the Clicks% column but I need both the Numerator and Denominator to change with change in dates (slider slicer)
Many Thanks!
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
ALLSELECTED function (DAX) - DAX | Microsoft Learn
Clicks measure: =
SUM( Data[Clicks] )
Clicks % measure: =
VAR _total =
CALCULATE ( SUM ( Data[Clicks] ), ALLSELECTED ( 'Calendar'[Date] ) )
RETURN
DIVIDE ( SUM ( Data[Clicks] ), _total )
Hi,
Please check the below picture and the attached pbix file.
ALLSELECTED function (DAX) - DAX | Microsoft Learn
Clicks measure: =
SUM( Data[Clicks] )
Clicks % measure: =
VAR _total =
CALCULATE ( SUM ( Data[Clicks] ), ALLSELECTED ( 'Calendar'[Date] ) )
RETURN
DIVIDE ( SUM ( Data[Clicks] ), _total )
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |