Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Parameters

Hi community,

I have a table that has a measure with a parameter in order to modify the table in the filter context, 

I need to count the numbers of rows , distinct count others columns, etc in the table but the problem is , only I can count these when the parameters is off (equal to cero) , but when I change this the table is filtered ok , but I can´t count any rows or columns whith a measure .

Can you help me about this ?

 

This is ok situation with the parameter in 0 and the count of rows (3 anomalias) is counting the rows of the table. 

calarcon_0-1705493678427.png

 

Anomalias = 

CALCULATE(
DISTINCTCOUNTNOBLANK(YR_CONSUMOS_EXTENDIDA[ID_extendida])
)

This is the DAX expresion that count in the table YR_CONSUMOS_EXTENDIDA

But when apply the parameter (in this case 5%) to modify the context the table is filtered ok (with filter context) but I need to create a new DAX formiula in order to count the columns or rows in the new filter.

The actual formula only count the phisical table but when you apply the parameter I can not count this modification so In this case I need to see 2 Anomalias instead of 3

 

calarcon_1-1705493907922.png

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on the information you provided, the problem you are having is that you are unable to calculate rows or columns when you make changes to the parameters. The dax formula you provided seems to be correct, but I would need more data to determine if it fits your data model.

Providing more detailed information will allow us to better understand your needs and better accomplish your purpose.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors