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.
I have a table of V_ACCT_CHARGES with
AcctNum, ChgServDate, ChgAmt
123456 2/4/2018 934.28
123456 2/5/2018 934.28
123456 2/4/2018 -934.28
654321 2/4/2018 934.28
I need to make a bar graph that shows the total number of accts with more than a 0 chgamt total by day
So there would be 1 on both 2/4/2018 and 2/5/2018 Because account 123456 has a total charge of 0 on 2/4/2018 it won't count that person.
I have a measure created for total charges that totals the charges correctly and I get
2/4/2018 934.28
2/5/2018 934.28
But when I try to pull it into a graph, it counts 2 for 2/4/2018.
My Axis I have ChgServDate
My Value I have Count of AcctNum
Filter I have Total Charge > 0
Solved! Go to Solution.
Hi @kattlees
You could create a new measure then add this measure to the Value field.
Measure = CALCULATE(SUM(Sheet5[ChgAmt]),ALLEXCEPT(Sheet5,Sheet5[ChgServDate],Sheet5[AcctNum])) Measure 3 = CALCULATE(DISTINCTCOUNT(Sheet5[AcctNum]),FILTER(ALLEXCEPT(Sheet5,Sheet5[ChgServDate]),[Measure]>0))
Best Regards
maggie
Hi @kattlees
You could create a new measure then add this measure to the Value field.
Measure = CALCULATE(SUM(Sheet5[ChgAmt]),ALLEXCEPT(Sheet5,Sheet5[ChgServDate],Sheet5[AcctNum])) Measure 3 = CALCULATE(DISTINCTCOUNT(Sheet5[AcctNum]),FILTER(ALLEXCEPT(Sheet5,Sheet5[ChgServDate]),[Measure]>0))
Best Regards
maggie
THIS WORKING GREAT IF WE SELECT THE SPECIFIC MONTH ,BUT WHAT IF WANT AOUTMATICALLY DISPLAY MAX MONTH OF THE YEAR @v-juanli-msft
Thank you. I had found a way to do it yesterday but was twice as many steps. I like your solution much better!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |