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.
i have a table with some slicers, when no slicers are selected the total shows 100%
when i have slicers selected, how do i modify such that the total will be show as the sum of the selected slicers i.e. the total % should be 14 instead of 100%.
This is my current dax:
HC_234 = CALCULATE(SUM('Hc Ship Opex Table'[HC FY23]), REMOVEFILTERS('Hc Ship Opex Table'[Office]))
i have also tried using:
HC_234 =
VAR testt = CALCULATE(SUM('Hc Ship Opex Table'[HC FY23]), REMOVEFILTERS('Hc Ship Opex Table'[Office]))
RETURN
IF(
HASONEVALUE('Hc Ship Opex Table'[Office]),
testt,
"1"
)
but its not retuning me what i want
@rgoo , Try like
HC_234 = CALCULATE(SUM('Hc Ship Opex Table'[HC FY23]), allselected('Hc Ship Opex Table'[Office]))
or
HC_234 = CALCULATE(SUM('Hc Ship Opex Table'[HC FY23]), allselected())
i have tried the 2 dax but it's not givng what i need. So far, the closest i have been is:
HC_23 = CALCULATE(SUM('Hc Ship Opex Table'[HC FY23]), REMOVEFILTERS('Hc Ship Opex Table'[Office]))
which gives me the % grand total compared to the total when sliced. However, i am trying to get the see if it's possible to set the total to the sum of current slicked rows which in this case will be 25% instead of 100%
User | Count |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |