Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
DaysAbove = what-if parameter
I have a tabular table with Date and CountID and a DaysWhereFlag. (If the count of that ID goes over the 'DaysAbove')
You can just sum the flag measure, try:
measure = Sumx(All(table), DaysWhereFlags)
or
measure = Sumx(table,DaysWhereFlags)
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 @davidsimm10
now use the formula;
Calculate(Sum(DaysWhereFlags),Filter(TableName, (BedModelData[PatientMeditechID]) > ('tbl_DaysAbove'[DaysAboveValue]))
Thats the same answer you said last time so no, it still doesnt work im afraid
Hi
Have you tried:
Calculate(Sum(DaysWhereFlags),Filter(TableName, (BedModelData[PatientMeditechID]) > ('tbl_DaysAbove'[DaysAboveValue]))
Thank you for the replies. The 'DaysWhereFlag' is a measure so it wont allow it to be put into the dax above.
Hi,
What i found here is you giving flag value in measure instead of generating the measure, Generate the same value in the Calculated column and then try same formula.
I hope this will help you.
Thanks.
Gaurav Jangra
Thank you. When I turn it into a column, it just needs to say 1/0 or true/false for the DaysWhereFlagCol. If I click 'Dont summarise', it returns all '1's'. I need to find which days are above the 'Days where what if' parameter and then sum the number of days that this happens.
are you able to provide some sampel data or your pbix?
please also demonstrate an example of what you want to see.
Proud to be a Super User!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |