The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
12 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
13 | |
8 | |
5 |