Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Team!
I need to prepare the report based on the following requirements:
There is a matrix that shows names as rows, YearMonth as columns, Sum of Value as Values.
The following screen shows solution by static measures.
I am attaching measure example and color measure example:
Value February 2025 =
CALCULATE(
SUM(Final_table[value]),
'Date table'[YearMonth] = "2025-02")
Feb 2025 Color =
VAR Current_Period = [Value February 2025]
VAR Previous_Period = [Value January 2025]
RETURN
SWITCH(
TRUE(),
ISBLANK(Current_Period) || ISBLANK(Previous_Period), BLANK(),
Current_Period > Previous_Period, "Light Green",
Current_Period < Previous_Period, "Red",
"Gray"
)
I put a filter for name, top 15 based on last available month value (October 2025).
Please let me know in case of any further queries. I am attaching PowerQuery code + excel sample data.
Thanks!
| Name | Value | YearMonth |
| Alpha | 0,0579 | 2025-01 |
| Bravo | 0,0384 | 2025-02 |
| Charlie | 0,1567 | 2025-03 |
| Delta | 0,1211 | 2025-04 |
| Echo | 0,1948 | 2025-05 |
| Foxtrot | 0,1494 | 2025-06 |
| Golf | -0,0078 | 2025-07 |
| Hotel | -0,0048 | 2025-08 |
| India | 0,0133 | 2025-09 |
| Juliet | 0,103 | 2025-10 |
| Kilo | -0,0005 | 2025-11 |
| Lima | 0,1058 | 2025-12 |
| Mike | 0,143 | 2025-01 |
| November | 0,0527 | 2025-02 |
| Oscar | 0,144 | 2025-03 |
| Papa | 0,1245 | 2025-04 |
| Quebec | 0,0363 | 2025-05 |
| Romeo | 0,0167 | 2025-06 |
| Sierra | 0,0588 | 2025-07 |
| Tango | 0,0771 | 2025-08 |
| Uniform | 0,019 | 2025-09 |
| Victor | 0,1141 | 2025-10 |
| Whiskey | 0,0678 | 2025-11 |
| Xray | 0,1151 | 2025-12 |
| Yankee | 0,1552 | 2025-01 |
| Zulu | 0,1678 | 2025-02 |
| Orion | 0,0951 | 2025-03 |
| Pegasus | 0,1812 | 2025-04 |
| Phoenix | 0,0936 | 2025-05 |
| Atlas | 0,1689 | 2025-06 |
| Alpha | 0,1625 | 2025-07 |
| Bravo | 0,0351 | 2025-08 |
| Charlie | 0,0306 | 2025-09 |
| Delta | 0,0183 | 2025-10 |
| Echo | 0,1582 | 2025-11 |
| Foxtrot | 0,1515 | 2025-12 |
| Golf | 0,0347 | 2025-01 |
| Hotel | 0,1496 | 2025-02 |
| India | 0,1455 | 2025-03 |
| Juliet | 0,1712 | 2025-04 |
| Kilo | 0,0855 | 2025-05 |
| Lima | 0,126 | 2025-06 |
| Mike | 0,059 | 2025-07 |
| November | 0,1144 | 2025-08 |
| Oscar | 0,053 | 2025-09 |
| Papa | 0,11 | 2025-10 |
| Quebec | 0,0387 | 2025-11 |
| Romeo | 0,1559 | 2025-12 |
| Sierra | 0,1067 | 2025-01 |
| Tango | 0,0732 | 2025-02 |
| Uniform | 0,0171 | 2025-03 |
| Victor | 0,1767 | 2025-04 |
| Whiskey | 0,1411 | 2025-05 |
| Xray | 0,0931 | 2025-06 |
| Yankee | -0,0044 | 2025-07 |
| Zulu | 0,1506 | 2025-08 |
| Orion | 0,1076 | 2025-09 |
| Pegasus | 0,1522 | 2025-10 |
| Phoenix | 0,0318 | 2025-11 |
| Atlas | 0,1852 | 2025-12 |
| Alpha | 0,1547 | 2025-01 |
| Bravo | 0,1009 | 2025-02 |
| Charlie | 0,034 | 2025-03 |
| Delta | 0,1335 | 2025-04 |
| Echo | 0,1794 | 2025-05 |
| Foxtrot | 0,1158 | 2025-06 |
| Golf | -0,0049 | 2025-07 |
| Hotel | 0,0713 | 2025-08 |
| India | 0,0994 | 2025-09 |
| Juliet | 0,1756 | 2025-10 |
| Kilo | 0,0283 | 2025-11 |
| Lima | 0,093 | 2025-12 |
| Mike | 0,1939 | 2025-01 |
| November | 0,102 | 2025-02 |
| Oscar | 0,0476 | 2025-03 |
| Papa | 0,1635 | 2025-04 |
| Quebec | 0,0123 | 2025-05 |
| Romeo | 0,0776 | 2025-06 |
| Sierra | 0,1149 | 2025-07 |
| Tango | 0,0651 | 2025-08 |
| Uniform | 0,1665 | 2025-09 |
| Victor | 0,1713 | 2025-10 |
| Whiskey | 0,1847 | 2025-11 |
| Xray | 0,1195 | 2025-12 |
| Yankee | 0,0975 | 2025-01 |
| Zulu | 0,084 | 2025-02 |
| Orion | 0,1284 | 2025-03 |
| Pegasus | 0,0302 | 2025-04 |
| Phoenix | 0,1829 | 2025-05 |
| Atlas | 0,0395 | 2025-06 |
| Alpha | 0,152 | 2025-07 |
| Bravo | 0,0953 | 2025-08 |
| Charlie | 0,1239 | 2025-09 |
| Delta | 0,0562 | 2025-10 |
| Echo | 0,133 | 2025-11 |
| Foxtrot | 0,0574 | 2025-12 |
| Golf | 0,1282 | 2025-01 |
| Hotel | 0,0029 | 2025-02 |
| India | 0,0567 | 2025-03 |
| Juliet | 0,0529 | 2025-04 |
| Kilo | 0,1469 | 2025-05 |
| Lima | 0,1902 | 2025-06 |
| Mike | 0,1505 | 2025-07 |
| November | 0,1095 | 2025-08 |
| Oscar | 0,0795 | 2025-09 |
| Papa | 0,1887 | 2025-10 |
| Quebec | 0,1397 | 2025-11 |
| Romeo | 0,0045 | 2025-12 |
| Sierra | 0,1733 | 2025-01 |
| Tango | 0,0359 | 2025-02 |
| Uniform | 0,0525 | 2025-03 |
| Victor | 0,1044 | 2025-04 |
| Whiskey | 0,1882 | 2025-05 |
| Xray | 0,0679 | 2025-06 |
| Yankee | 0,1297 | 2025-07 |
| Zulu | 0,1094 | 2025-08 |
| Orion | 0,1768 | 2025-09 |
| Pegasus | 0,0128 | 2025-10 |
| Phoenix | 0,1622 | 2025-11 |
| Atlas | 0,1039 | 2025-12 |
| Alpha | 0,139 | 2025-01 |
| Bravo | 0,0056 | 2025-02 |
| Charlie | 0,0651 | 2025-03 |
| Delta | 0,0305 | 2025-04 |
| Echo | 0,1001 | 2025-05 |
| Foxtrot | 0,0498 | 2025-06 |
| Golf | 0,1665 | 2025-07 |
| Hotel | 0,067 | 2025-08 |
| India | 0,1724 | 2025-09 |
| Juliet | 0,0167 | 2025-10 |
| Kilo | 0,1186 | 2025-11 |
| Lima | 0,0175 | 2025-12 |
| Mike | 0,1252 | 2025-01 |
| November | 0,1828 | 2025-02 |
| Oscar | 0,0028 | 2025-03 |
| Papa | 0,0566 | 2025-04 |
| Quebec | 0,0808 | 2025-05 |
| Romeo | 0,0863 | 2025-06 |
| Sierra | -0,0007 | 2025-07 |
| Tango | 0,0959 | 2025-08 |
| Uniform | 0,0916 | 2025-09 |
| Victor | 0,0516 | 2025-10 |
| Whiskey | 0,0306 | 2025-11 |
| Xray | 0,1459 | 2025-12 |
| Yankee | 0,1371 | 2025-01 |
| Zulu | 0,1315 | 2025-02 |
| Orion | 0,0575 | 2025-03 |
| Pegasus | 0,1359 | 2025-04 |
| Phoenix | 0,0456 | 2025-05 |
| Atlas | 0,1533 | 2025-06 |
Hi @bartek_pepper,
here my insights for each request:
There is a matrix that shows names as rows, YearMonth as columns, Sum of Value as Values.
FB You need a disconnected table showing the year-months:
Modeling -> New Table
Selection=
ALL ( 'Date[Year-Month] )
Then the measure will have the code
Calculation=
VAR SelectedMonth = SELECTEDVALUE ( Selection[Year-Month] )
RETURN
SUMX (
VALUES ( 'Date[Year-Month] ),
IF (
'Date[Year-Month] <= SelectedMonth,
SUM ( Table[Value] )
)
supposing 'Date' is your dates table and Table[Value] is the column to aggregate
FB where and how do you want to see this list of Customers? In a string on a Card, or ?
CONCATENATEX
TOPN (
15,
SUMMARIZE ( VALUES ( Customer), Customer[Customer key ), Customer[CustomerName] ),
SUM ( Table[Value] )
),
Customer[Customer key] & " " & Customer[CustomerName],
" / "
)
Delta MoM =
[Measure] - CALCULATE ( SUM ( Table[Value] ), DATEADD ( 'Date'[Date], -1, MONTH ) )
The ideal thing would be to have a Measure, say Calculation = SUM ( Table[Value] ) to avoid spreading the same code everywhere so you can reference to it in the above code instaed of refereing to SUM ( Table[Value] )
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Sincerely,
@bartek_pepper , if you need Date range more than selected, you need a disconnected Date table either in the slicer or the Axis(Column of the Matrix)
You need to measure like below
CALCULATE([net New], KEEPFILTERS(TOPN(5, ALLSELECTED('Item'[Brand]),[Net], DESC)))
Here one net is dependent on slicer value and another net on axis value. The measure will be decided based on the approach we take
I have discussed the approach here
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 18 | |
| 12 |