Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the following table and i want to filter one of two rows based on a what-if parameter.
Threshold Lower | Threshold Upper | Intercept | Gradient |
0 | 100000 | 0.05 | 2 |
100000 | 200000 | 0.1 | 4
|
I have tried to create a new calculated table using the following DAX formula:
So, what the measure will include?
By the way, countows is not defined as function in my Power BI
@Anonymous , Sorry typo, countrows, use can use countx, sumx, minx, maxx and then use this var table
Measure =
var _Table_New = FILTER('Table', AND('Table'[Threshold Upper] >= 'Parameter'[Parameter Value],'Table'[Threshold Lower] <= 'Parameter'[Parameter Value]) )
return
countrows(_Table_New )
or
return
countX(_Table_New,_Table_New[Value] )
Why it returns the count of rows?
@Anonymous , You can not use any slicer or what-if parameter value in the creation of a calculated table.
You can create a table using that as var in measure. Each measure that need this table, you need to have that
Measure =
var _Table_New = FILTER('Table', AND('Table'[Threshold Upper] >= 'Parameter'[Parameter Value],'Table'[Threshold Lower] <= 'Parameter'[Parameter Value]) )
return
countows(_Table_New )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
64 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |