March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Experts,
I am working on the requirements below to showcase the individual data when we select any options in slicer.
(ACCOUNT) | (OFFER TYPE) | (SCOPE) | (SCOPE COMBINED) | (FORECAST) | (REVENUE) | (CM%) |
AAA | X | RED | RED | 445354 | 454367 | 35% |
AAA | Y | GREEN | RED | 8676 | 9764 | 35% |
BBB | Y | AMBER | AMBER | 123445 | 976765 | 35% |
BBB | X | GREEN | AMBER | 33555 | 87654 | 35% |
above the sample data , in that SCOPE and SCOPE COMBINED columns are calculated columns which we have developed already to display the risks in color icons .
We have a OFFER TYPE slicer in the page and In the slicer we have offer types (eg : X , Y , etc) When slicer OFFER TYPE is "ALL" then we can show combined row as below :
Acc | Scope Comb. | forecast | revenue | CM% |
AAA | RED | 454030 (sum of both AAA account forecast values) | 464131 | 35% |
BBB | AMBER | ..... | ..... | 35% |
but when we select some selection from the slicer (X or Y) then it should show only specific respective row data .
Example : when i select "X" in the slicer , the table should show only X related data in the table expected as below : (removed OFFER TYPE & SCOPE columns)
ACCOUNT | SCOPE COMBINED | FORECAST | REVENUE | CM% |
AAA | RED | 445354 | 454367 | 35% |
BBB | GREEN | 33555 | 87654 | 35% |
Scope combined DAX we created :
So far the combined rows are working fine when OFFER TYPE is "ALL" , so we want to fix the single offer type selection from the slicer.
Hope it is clear .. let me know if require more data.
Thanks
DK
Solved! Go to Solution.
Hi ALL
Firstly Ankur04 thank you for your solution!
And @dinesharivalaga ,You want to show the value of the scope combine in the case of multi-selection, and the value of the scope in the case of single-selection, right?
If that's the case, we can create a new metric to determine whether we're multi-selecting or single-selecting to determine how we need to format the output.
Dynamic Scope =
IF(
ISFILTERED('Test Delivery Updates'[Offer Type]) && HASONEVALUE('Test Delivery Updates'[Offer Type]),
MAX('Test Delivery Updates'[Scope]),
MAX('Test Delivery Updates'[Scope Combined])
)
If you still have questions, check out my pbix file, I hope my solution helps, I would be honored if I could solve your problem!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi ALL
Firstly Ankur04 thank you for your solution!
And @dinesharivalaga ,You want to show the value of the scope combine in the case of multi-selection, and the value of the scope in the case of single-selection, right?
If that's the case, we can create a new metric to determine whether we're multi-selecting or single-selecting to determine how we need to format the output.
Dynamic Scope =
IF(
ISFILTERED('Test Delivery Updates'[Offer Type]) && HASONEVALUE('Test Delivery Updates'[Offer Type]),
MAX('Test Delivery Updates'[Scope]),
MAX('Test Delivery Updates'[Scope Combined])
)
If you still have questions, check out my pbix file, I hope my solution helps, I would be honored if I could solve your problem!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@v-xingshen-msft Thanks a lot for your solution 🙂
This is the expectation from my end 🙂
Hi @dinesharivalaga ,
could you please explain in detials with your raw data and expected output. I tried to understand from the above query your calculation by default should work.
Thanks,
Ankur
@Ankur04
Offer type and scope logic columns are not required in this table , i just added for the understanding.
when we select offer type options in the slicer then the scope logic icon (green) should display in the scope combined column , this is the expected result .
Hi @dinesharivalaga ,
can you try something like this.
@Ankur04 Sorry i don't understand this .. Can you please explain what you are trying to say ?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
17 | |
9 | |
5 |
User | Count |
---|---|
36 | |
29 | |
16 | |
15 | |
12 |