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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
chwilkinson
New Member

Calculations

Hello,

I'm quite new to power BI and so could really do with some help with calculations.

I an using SP as a data source and have a column with valuses of high, medium and low.

I'd like to work of the number of rows with eith high, medium or low in the column but I'm struggling to work out how to do it.

Any help would be really appreciated.

Thanks

1 ACCEPTED SOLUTION
devesh_gupta
Super User
Super User

@chwilkinson Yeah, you can simply create three measures for counting the number of rows for the high, medium and low respectively.

Like this: 

high = COUNTROWS(FILTER('Table', 'Table'[columnName] = "high"))

medium = COUNTROWS(FILTER('Table', 'Table'[columnName] = "medium"))

low = COUNTROWS(FILTER('Table', 'Table'[columnName] = "low"))

 

If you find this insightful, please provide a Kudo and accept this as a solution.

View solution in original post

1 REPLY 1
devesh_gupta
Super User
Super User

@chwilkinson Yeah, you can simply create three measures for counting the number of rows for the high, medium and low respectively.

Like this: 

high = COUNTROWS(FILTER('Table', 'Table'[columnName] = "high"))

medium = COUNTROWS(FILTER('Table', 'Table'[columnName] = "medium"))

low = COUNTROWS(FILTER('Table', 'Table'[columnName] = "low"))

 

If you find this insightful, please provide a Kudo and accept this as a solution.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.