Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All
I have below chart , which is display accumulated expense by year :-
X Axis :-
Year_sort
Y Axis :-
My question is how to modify the expression , so that it will return average yearly expense ?
Paul
Solved! Go to Solution.
Hi @admin11
Can you share a sample of you data in a text format,
BTW, Try this on the same chart:
AMOUNT_EXP_ =
CALCULATE ( AVERAGE( GL[AMT] ) * 1, FILTER ( GL, GL[1_EXP] = "EXP" ) )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi,
You can simplify your measure to this
AMOUNT_EXP_ = CALCULATE(SUM(GL[AMT]),GL[1_EXP]="EXP")
Please show the expected result in a simple table format and share the download link of your PBI file.
Hi,
You can simplify your measure to this
AMOUNT_EXP_ = CALCULATE(SUM(GL[AMT]),GL[1_EXP]="EXP")
Please show the expected result in a simple table format and share the download link of your PBI file.
You are welcome. The closing bracket of the SUM function as missing. I have corrected my post.
Hi @admin11
Can you share a sample of you data in a text format,
BTW, Try this on the same chart:
AMOUNT_EXP_ =
CALCULATE ( AVERAGE( GL[AMT] ) * 1, FILTER ( GL, GL[1_EXP] = "EXP" ) )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
39 |