Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Get a total of values from a column and group the results by their value

$
0
0

Hi, I'm sorry if my title was a little vague im not sure how i would have worded it really.

 

Hopefully someone can help, im relatively new to Power BI.

 

Currently i have a database that i use to store multiple events and manage them (its a WordPress database with an events plugin).

 

In the transactions table i have a column of 'STS_ID' which can have one of four values....

 

TCM = transaction complete

TIN = transaction incomplete

TAB = Transaction abandoned

TFL = Transaction failed

 

What i would like to do is make a count of the 4 values in the column and get the number of transactions with each status code. I can count the entire column but that just gives me an over all total. Ideally i would like to be able to get these numbers and just place them in a number card on the dashboard. I know that i can make a slicer tile with the transaction codes in and using this would filter the results shown depending on the transaction. I would like to work out the amount for each code though and then just give the numbers to the end user without them having to interact too much with slicers and the visualisations.

 

I tried with 

Transactions Complete = COUNTA(table_name[STS_ID])

And also tried making one for each code but all they are doing is giving me the total of the values in the column. 

 

Really what i guess im really asking is this. Is there a function that will count the values in that column, group them into the 4 groups, one for each status code and then provide me with a usable result for each one? so i can show how many of each type of transaction code there is in the database table/column.

 

Sorry if i havent been very clear here, but if someone could point me in the right direction or thinks they may be able to help with a little bit more information then il try and provide as much as i can.

 

Thanks

 

PhilB


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>