The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi pros,
I have a data 'Table'
My normal matrix visual has 2 levels in rows: 'Version_date' -> 'Product'
Please help if there is any way to summurize by product in the total without creating separate matrix for product performance, some thing looks like
Thank you all.
Solved! Go to Solution.
Hi @navafolk
Create a separate dimensions table that has the version date as well as a row for the word total. You will be combining dates and text in one column so the result is a text thus the date must be formatted to its text equivalent.
VersionDates =
VAR _dates =
DISTINCT (
SELECTCOLUMNS (
'Table',
"Version date", FORMAT ( 'Table'[Version_date], "dd mmmm yyyy" ),
"Sort", 'Table'[Version_date]
)
)
VAR _total =
DATATABLE ( "Version Date", STRING, "Sort", INTEGER, { { "Total", 10000000 } } )
RETURN
UNION ( _dates, _total )
Create a one-to-many single direction relationship from VersionDates[Sort] to 'Table'[Date]
Create this measure:
Amount with Total Breakdown =
IF (
SELECTEDVALUE ( VersionDates[Version date] ) = "Total",
CALCULATE ( SUM ( 'Table'[Amount] ), REMOVEFILTERS ( VersionDates ) ),
SUM ( 'Table'[Amount] )
)
Show/hide the subtotal rows/columns as necessary
Please see the attached pbix.
Hi @navafolk ,
Thank you for reaching out to the Microsoft Fabric Community forum.
If @danextian response is helpful, please “Accept it as a solution” to assist other community members in resolving similar issues more efficiently.
Thank you.
Hi @navafolk
I dont think thats natively possible but you could simulate an effect by amending the table properties of two independant tables. Hide totals and align text as needed gives you something like below...
Having 2 tables is a challenge though but visually can make it look like this.
Hi @navafolk
Create a separate dimensions table that has the version date as well as a row for the word total. You will be combining dates and text in one column so the result is a text thus the date must be formatted to its text equivalent.
VersionDates =
VAR _dates =
DISTINCT (
SELECTCOLUMNS (
'Table',
"Version date", FORMAT ( 'Table'[Version_date], "dd mmmm yyyy" ),
"Sort", 'Table'[Version_date]
)
)
VAR _total =
DATATABLE ( "Version Date", STRING, "Sort", INTEGER, { { "Total", 10000000 } } )
RETURN
UNION ( _dates, _total )
Create a one-to-many single direction relationship from VersionDates[Sort] to 'Table'[Date]
Create this measure:
Amount with Total Breakdown =
IF (
SELECTEDVALUE ( VersionDates[Version date] ) = "Total",
CALCULATE ( SUM ( 'Table'[Amount] ), REMOVEFILTERS ( VersionDates ) ),
SUM ( 'Table'[Amount] )
)
Show/hide the subtotal rows/columns as necessary
Please see the attached pbix.
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
106 | |
98 | |
55 | |
49 | |
48 |