Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
PBI Community Good!
What I'm trying to accomplish
Need measures for the sources in my matrix in the screen shots below
I have a sample data set to forward if needed please advise.
Per the schedule below,
the current measure are just place holder to show how I want them displayed in the matrix
Much appreciate your time!
Thank You!
Solved! Go to Solution.
Hi @PBI-Curious ,
We can create measures.
Open Plan =
CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) && 'Table'[source]="Open Plan" && 'Table'[date]=SELECTEDVALUE('Table'[date])))
Open Forecast =
CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) && 'Table'[source]="Open Forecast" && 'Table'[date]=SELECTEDVALUE('Table'[date])))
total open forecast = SUMX(
SUMMARIZE(
'Table',
'Table'[product_minor],
'Table'[date],
"total",'Table'[Open Forecast]
),
[total]
)
total open plan = SUMX(
SUMMARIZE(
'Table',
'Table'[product_minor],
'Table'[date],
"total",'Table'[Open Plan]
),
[total]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Tang
Per your solution above, I got the measure to work.
Much appreciate your time and help!
Thank you
Hello Tang
Good Day!
Did you receive the link to my sample.pbix sent to you via a private message?
Hello Neeko Tang
Per your example, I working on it now, but I'm getting an error message in the Dax.
How did you upload your sample .pbix?
I have a sample .pbix I can upload the same way for your review.
Please advise
Thank you
Hi @PBI-Curious ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create measures.
Open Forecast = CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) && 'Table'[source]="Open Forecast"))
Open Plan = CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) && 'Table'[source]="Open Plan"))
(3) Then the result is as follows.
Or we can create measures.
_a = SWITCH(TRUE(),
MAX('Table'[source])="Open Forecast",CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) && 'Table'[source]="Open Forecast")),
MAX('Table'[source])="Open Plan",CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) && 'Table'[source]="Open Plan")))
Value =
SUMX(
SUMMARIZE(
'Table',
'Table'[product_minor],
'Table'[source],
"total",'Table'[_a]
),
[total]
)
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Neeko Tang
I have questions per the following:
<<<<<<<<View B>>>>>
Visualizations details for Matrix <<<View A
Much appreciate your time
Thank you
Hi @PBI-Curious ,
We can create measures.
Open Plan =
CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) && 'Table'[source]="Open Plan" && 'Table'[date]=SELECTEDVALUE('Table'[date])))
Open Forecast =
CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) && 'Table'[source]="Open Forecast" && 'Table'[date]=SELECTEDVALUE('Table'[date])))
total open forecast = SUMX(
SUMMARIZE(
'Table',
'Table'[product_minor],
'Table'[date],
"total",'Table'[Open Forecast]
),
[total]
)
total open plan = SUMX(
SUMMARIZE(
'Table',
'Table'[product_minor],
'Table'[date],
"total",'Table'[Open Plan]
),
[total]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Tang
I sent you a private message with an sample.pbix.
I will take a look at your post above.
Much appreciate your time!
Thank you
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
24 | |
21 | |
17 | |
14 | |
10 |
User | Count |
---|---|
42 | |
35 | |
25 | |
23 | |
23 |