The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a measure(say "SK4") which holds significance only if calculated quarter wise.
Now I want to create a new measure (say "BK", where BK=sales*SK4).
I want to plot this "BK" measure on a line graph, where X-axis will be monthwise.
Now since the x-axis is in months, the value SK4, hence BK4, will be calculated monthwise. But, I want that while calculating BK, it should consider quater wise value of SK4 , not month wise.
How can I achieve this?
Solved! Go to Solution.
Hi @Varishtha ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create measures
SK4 =
CALCULATE(
AVERAGE('Table'[Price]),
ALLEXCEPT(
'Table',
'Table'[Quarter]
)
)
Total = [SK4]*SELECTEDVALUE('Table'[Sales])
Final output
Because measure takes effect based on context, not only do you need to place the date column on the x-axis, but you also need to place the quarter column on the x-axis as well
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Varishtha ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create measures
SK4 =
CALCULATE(
AVERAGE('Table'[Price]),
ALLEXCEPT(
'Table',
'Table'[Quarter]
)
)
Total = [SK4]*SELECTEDVALUE('Table'[Sales])
Final output
Because measure takes effect based on context, not only do you need to place the date column on the x-axis, but you also need to place the quarter column on the x-axis as well
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
94 | |
81 | |
63 | |
56 |
User | Count |
---|---|
247 | |
122 | |
110 | |
77 | |
72 |