Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables:
I’ve created a relationship between IN and Date on the Year Month column (many-to-many relationship). I’ve also defined a measure (Total Revenue):
TotRev = SUM('IN'[amount])
I’m trying to create a table visualization with the following columns:
MaxRevenue = MAXX(ALLSELECTED('Date'[month]), [TotRev])
What I have
Janv | 23300 |
Feb | 20500 |
Mar | 24900 |
Apr | 18900 |
May | 11235 |
Jun | 9000 |
Jul | 6500 |
Aug | 22750 |
Sep | 33000 |
Oct | 33000 |
Nov | 26750 |
Dec | 22125 |
What I want
Janv | 33000 |
Feb | 33000 |
Mar | 33000 |
Apr | 33000 |
May | 33000 |
Jun | 33000 |
Jul | 33000 |
Aug | 33000 |
Sep | 33000 |
Oct | 33000 |
Nov | 33000 |
Dec | 33000 |
Solved! Go to Solution.
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Amount measure: =
SUM('IN'[amount])
expected result measure: =
MAXX (
ALL (
'Date'[Year],
'Date'[Year-Month sort],
'Date'[Year-Month],
'Date'[Month name],
'Date'[Month number]
),
[Amount measure:]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks it works.
I forgot to add 'Date'[Month name] which is crucial.
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Amount measure: =
SUM('IN'[amount])
expected result measure: =
MAXX (
ALL (
'Date'[Year],
'Date'[Year-Month sort],
'Date'[Year-Month],
'Date'[Month name],
'Date'[Month number]
),
[Amount measure:]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
19 | |
15 | |
13 | |
11 | |
9 |
User | Count |
---|---|
25 | |
22 | |
12 | |
11 | |
10 |