Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
_google
Helper I
Helper I

#5 Dynamic column calculation on Slicer Action Options

Hi

Am looking for help on dynamic report changes (Power Pivot) based on Slice Selection.

 Scenario :

 Fact data table is Flat mode ( not tabulated/ and cannot restructure) hence in data model had to create table for the ZONE  ( Data mode screen)

What is Required,

based on user slicer Selection of "Area" and "Region" the report view to change for Zone for based on criteria

Link of the model https://1drv.ms/x/s!ArfkmPx6DIXHake1H54OkIxmA4A

 

 Through calcuate function

      1. =IF([Zone]="AAA",CALCULATE(sum(fTable[QTY]),FILTER('fTable',fTable[AAA]>=0&&fTable[AAA]<=2)),BLANK())

      2. =IF([Zone]="BBB",CALCULATE(sum(fTable[QTY]),FILTER('fTable',fTable[BBB]>=0&&fTable[BBB]<=2)),BLANK())

      3. Sum area =CALCULATE(sum(fTable[QTY]),'dArea')

 

TypeAreaRegionQTYAAABBBCCCDDD
AFGV1102022
AFGV1102021
AFGV2100011
ATFV1100221
ATFV1103121
ATFV1102112
ARGV2100111
ARGV1100231
ARGV2102111
AKGV2101111
AKGV2102211
AKGV2101111
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@_google,

 

It seems that you may select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@_google,

 

It seems that you may select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.