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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PaisleyPrince
Helper III
Helper III

Measure required in Power BI matrix

Hi,

I have a matrix showing values by weeks and months but i only want the week % to be shown as that related to the current month rather than the overall total as per the screenshot. Can you please advise how this would be done ?

PaisleyPrince_0-1766144833099.png

 

1 ACCEPTED SOLUTION

Hi @PaisleyPrince

 

Please check and confirm

 

Base measure
Total Invoice Value :=
SUM ( FactInvoices[InvoiceValue] )


Final single % measure (use this in matrix)
Div Week % of Month :=
VAR MonthTotal =
CALCULATE (
[Total Invoice Value],
REMOVEFILTERS ( Date[WeekNo], FactInvoices[Division] )
)
RETURN
DIVIDE ( [Total Invoice Value], MonthTotal, 0 )

 

 

 

View solution in original post

13 REPLIES 13
PaisleyPrince
Helper III
Helper III

Hi,

I have a matrix showing values by weeks and months invoice values by division but i want the division & week % to be shown as that related to the current month total rather than the overall total as per the screenshot. Can you please advise how this would be done ?

PaisleyPrince_1-1766145398477.png

 

 

Hi @PaisleyPrince

 

Please check and confirm

 

Base measure
Total Invoice Value :=
SUM ( FactInvoices[InvoiceValue] )


Final single % measure (use this in matrix)
Div Week % of Month :=
VAR MonthTotal =
CALCULATE (
[Total Invoice Value],
REMOVEFILTERS ( Date[WeekNo], FactInvoices[Division] )
)
RETURN
DIVIDE ( [Total Invoice Value], MonthTotal, 0 )

 

 

 

Please check the formula below:

 

Div1 % =
DIVIDE(
    [Inv Div1],
    CALCULATE( [Inv Div1], REMOVEFILTERS('Date'[WeekNo]) )
)

 

and use it for 2 and 3 by creating seperate measures. 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn

@PaisleyPrince Try this measure:

Measure =DIVIDE( [Invoice Value], CALCULATE([Invoice Value],REMOVEFILTER('Date'[Week No])))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hii @PaisleyPrince 

 

You need a measure that calculates the % against the current month total, not the grand total. Use CALCULATE with ALLEXCEPT (or REMOVEFILTERS) to keep the Month context while removing Week/Division filters. For example:

 

Div Week % =
DIVIDE(
    [Invoice Value],
    CALCULATE(
        [Invoice Value],
        ALLEXCEPT('Date', 'Date'[Month])
    )
)

 

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
v-aatheeque
Community Support
Community Support

Hi @PaisleyPrince 

Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.

Hi @PaisleyPrince 

Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.

Praful_Potphode
Solution Sage
Solution Sage

Hi @PaisleyPrince ,

 

Please try below visual calculation(select your Matrix visual and click new visual calculation) in your matrix:

Percent of parent = FORMAT(
DIVIDE(
    [Sum of Volume]
,
COLLAPSE([Sum of Volume],ROWS,1)

),"0.00%")

Praful_Potphode_1-1766218537254.png

 

Sample PBIX

Please give kudos or mark it as solution once confirmed.

 

Thanks and Regards,

Praful

krishnakanth240
Responsive Resident
Responsive Resident

Hi @PaisleyPrince 

 

Please check and confirm with headsup. Thank You!

 

Week % of Month =
VAR WeekVolume =
SUM ( Fact[volume] )

VAR MonthVolume =
CALCULATE (
SUM ( Fact[volume] ),
REMOVEFILTERS ( 'Date'[Week No] )
)

RETURN
DIVIDE ( WeekVolume, MonthVolume )

Ashish_Mathur
Super User
Super User

Hi,

Try this measure

Total of month = calculate([Volume],allexcept(calendar,calendar[month]))

Week % = divide([Volume],[Total of month])

I have assumed that volume is an explicit measure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Zanqueta
Solution Sage
Solution Sage

Hi @PaisleyPrince,

 

Assuming you already have a measure for Sales (or similar), you can create a new measure for Week % of Month:

Week % of Month =
DIVIDE(
    [Total Sales],  // numerator: sales for the current week
    CALCULATE(
        [Total Sales],
        REMOVEFILTERS('Date'[Week]),       // remove week filter
        KEEPFILTERS(VALUES('Date'[Month])) // keep current month context
    ),
    0
)

 

If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.

Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.

cengizhanarslan
Solution Sage
Solution Sage

Please check the formula below:

 

Week %  =
DIVIDE(
    [Volume],
    CALCULATE(
        [Volume],
        REMOVEFILTERS('Date'[WeekNo])
    )
)
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn
Cookistador
Super User
Super User

hI @PaisleyPrince 

 

The following measure should return what you want:

Cookistador_0-1766146050020.png

 

This is the measure I created:

Week % of Month =
VAR CurrentVolume = SUM('Table'[Volume])

VAR MonthTotal =
CALCULATE(
SUM('Table'[Volume]),
REMOVEFILTERS('Table'[Week No])
)

RETURN
DIVIDE(CurrentVolume, MonthTotal)

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.