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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jeroend
New Member

Group numbers

Hi,

 

I'm Jerry and new to PowerBI. I'm having some trouble lately to visualize some simple graphs.

 

I need some simple KPI's or graphs to visualize how many invoices are above the value 50.000. Is this done with a smart measure?

 

How many invoices are above a certain amount and this in % of total invoices?

How many invoices of the have a po number in the summarry column and this in relation of the total invoices

 

Example table see below

 

NumberDateSummaryValue
125/02/20212021-01€ 5.000,00
222/01/20212021-05€ 10.000,00
329/01/2021PO12345€ 600.000,00
406/09/2021PO54321€ 12.000,00
506/09/2021PO11111€ 12,00
609/04/2021INV€ 15,00
711/12/20201505€ 15.000,00
826/10/20212021-01€ 100.000,00
913/08/20212021-05€ 7.500,00
1030/06/2021PO12312€ 500.000,00

 

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jeroend ,

Here are the steps you can follow:

Graphs to visualize how many invoices are above the value 50.000”:

1. Create measure.

Flag =
IF(
    MAX('Table'[Value]) >500000,1,0)

2. Place [Flag] in Filters, set is=1, apply filter.

vyangliumsft_0-1640226543891.png

3. Result:

Only values greater than 500,000 are displayed

vyangliumsft_1-1640226543894.png

How many invoices are above a certain amount and this in % of total invoices

1. Create measure.

% of total invoices =
var _over_allcount=COUNTX(FILTER(ALL('Table'),
    'Table'[Value]> 500000),[Number])
var _totalinvoices=COUNTX('Table','Table'[Number])
return
DIVIDE(_over_allcount,_totalinvoices)

2. Result:

vyangliumsft_2-1640226543894.png

How many invoices of the have a po number in the summarry column and this in relation of the total invoices

1. Create measure.

IF_ponumber =
var _mid=MID(MAX('Table'[Summary]),5,1)
return
IF(
    _mid <> "-",1,0)
summarry% =
var _countponumber=COUNTX(FILTER(ALL('Table'),[IF_ponumber]=1),[Number])
var _countall=COUNTX('Table','Table'[Number])
return
DIVIDE(_countponumber,_countall)

2. Result.

vyangliumsft_3-1640226543896.png

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @jeroend ,

Here are the steps you can follow:

Graphs to visualize how many invoices are above the value 50.000”:

1. Create measure.

Flag =
IF(
    MAX('Table'[Value]) >500000,1,0)

2. Place [Flag] in Filters, set is=1, apply filter.

vyangliumsft_0-1640226543891.png

3. Result:

Only values greater than 500,000 are displayed

vyangliumsft_1-1640226543894.png

How many invoices are above a certain amount and this in % of total invoices

1. Create measure.

% of total invoices =
var _over_allcount=COUNTX(FILTER(ALL('Table'),
    'Table'[Value]> 500000),[Number])
var _totalinvoices=COUNTX('Table','Table'[Number])
return
DIVIDE(_over_allcount,_totalinvoices)

2. Result:

vyangliumsft_2-1640226543894.png

How many invoices of the have a po number in the summarry column and this in relation of the total invoices

1. Create measure.

IF_ponumber =
var _mid=MID(MAX('Table'[Summary]),5,1)
return
IF(
    _mid <> "-",1,0)
summarry% =
var _countponumber=COUNTX(FILTER(ALL('Table'),[IF_ponumber]=1),[Number])
var _countall=COUNTX('Table','Table'[Number])
return
DIVIDE(_countponumber,_countall)

2. Result.

vyangliumsft_3-1640226543896.png

 

Best Regards,

Liu Yang

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

ryan_mayu
Super User
Super User

@jeroend 

Measure = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Value]>5000))

Measure 2 = [Measure]/COUNTROWS('Table')

pls see the attachment to check if this is what you want





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

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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