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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
abeirne
Helper II
Helper II

Percentage change of a count

Hi good morning, I am working on some data that calculates the count of a text Y/Y. This is for different types of reservations (cancelled, lost, quote, reservation, and booked alternative). I was wondering how to create a percentage difference with the count values, as the values I am working with are not numbers. Would I be able to create a measure that divides by a count, or is there another way I should be looking at this? The data I was given does not have a table that shows the count of status (the types of reservations) so maybe I should be looking into creating a table that shows this?

Thanks so much, any help is greatly appreciated. I can also explain more if needed

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

Count measure seems like a good way to approach this. Another alternative would be COUNTROWS combined with FILTER. So e.g. COUNTROWS(FILTER(ALL(Table),Table[Type]="Cancelled"))

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ValtteriN
Super User
Super User

Hi,

Count measure seems like a good way to approach this. Another alternative would be COUNTROWS combined with FILTER. So e.g. COUNTROWS(FILTER(ALL(Table),Table[Type]="Cancelled"))

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you so much. It is returning the total amount however, is there a way to filter it by date? I have this:

Quotes Cancelled =
COUNTROWS(
     FILTER(
          ALL('gcQuoteSent'),
          'gcQuoteSent'[Status 2] = "Cancelled" &
          'gcQuoteSent'[QuoteSentDate].[Date] <= "1/1/2020"
)
)
But this is returning an error, and won't display the visual in a table

Hi,

Try removing the .[Date] from the DAX. If your date column is in the correct format you don't need it. Additionally, it might cause an errot depending on your table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.