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.
Hello,
I am kind of new to power Bi, data visualizacion and report construction. I am trying to build a demand graph based on a weekly demand.
The Graph shows the demand volume based on the different weeks. The week value is set through another table of periods which is associated with a date value from the demand table. As you may see, I have already an average line on the visualization with a very small, hard to see '4' number over there.
I want to show the average per week on the data card that is set at the left. Any ideas on how I could be able to achieve this? I don't know how to calculate this average per week.
Solved! Go to Solution.
Hi @Anonymous ,
What you need is to create 2 measures :
1.Create a measure to get value of “Proposals demand”:
VAR week =
MAX ( 'Date'[Week of year] )
VAR p =
MAX ( 'Date'[Period] )
VAR k =
ADDCOLUMNS (
Demand,
"ind", CALCULATE (
MAX ( 'Date'[Period] ),
FILTER (
'Date',
'Date'[Week of year] = Demand[Week of year]
&& 'Date'[Index] = Demand[Index]
)
)
)
RETURN
CALCULATE (
SUM ( Demand[Proposals Demand per week] ),
FILTER ( k, Demand[Week of year] = MAX ( 'Date'[Week of year] ) && [ind] = p )
)
2. show the “average ” in a card:
3.Then you will see as below:
For the related .pbix file,pls turn to URL: https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-kellya_microsoft_com/EZrxK33QIJJFh1P_nskya94B47Z-f_BqWT7qb4I-emY2zQ?e=nr41Dw
Hope this would help.
Best Regards,
Kelly
Hi @Anonymous ,
What you need is to create 2 measures :
1.Create a measure to get value of “Proposals demand”:
VAR week =
MAX ( 'Date'[Week of year] )
VAR p =
MAX ( 'Date'[Period] )
VAR k =
ADDCOLUMNS (
Demand,
"ind", CALCULATE (
MAX ( 'Date'[Period] ),
FILTER (
'Date',
'Date'[Week of year] = Demand[Week of year]
&& 'Date'[Index] = Demand[Index]
)
)
)
RETURN
CALCULATE (
SUM ( Demand[Proposals Demand per week] ),
FILTER ( k, Demand[Week of year] = MAX ( 'Date'[Week of year] ) && [ind] = p )
)
2. show the “average ” in a card:
3.Then you will see as below:
For the related .pbix file,pls turn to URL: https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-kellya_microsoft_com/EZrxK33QIJJFh1P_nskya94B47Z-f_BqWT7qb4I-emY2zQ?e=nr41Dw
Hope this would help.
Best Regards,
Kelly
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 |
---|---|
97 | |
96 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |