Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello everyone,
I need help about dax. First of all ı have a table visualization in PBI. And below the image is example of how PBI visualization. I have 2 table. 1 Fact table and other DimDate table. There is a 1(dimdate) to many(fact) based on Date. Weeks and Date comes from DimDate table. Value is a measure which is SUM(Fact[Value]). and I want to create a measure which gives max value for SUM(Fact[Value]) based on weeks and lastly ı have some slicers that needs to effected. So whenever slicer changes max value needs to be effected.
Fact Table:
The table I visualized in PBI:
Thanks for supports.
Solved! Go to Solution.
Hi @fabconmvp
Please check this
Hi,
Try this measure
=MAXX(ALLSELECTED(Calendar[weeks]),[Value])
Hope this helps.
Hello,
İt doesn't work. The values doesn't change. Thank you for support.
You are welcome. Share the download link of the PBI file.
Hi @fabconmvp
Please check this
Hello,
Firstly, thank you for support. I guess some of the column missing but I modified it in your measure. I'm testing detailly right now that effected other slicers etc. I'm going to accept accept the solution if ı have no question. Thank you for support.
"
Hi @fabconmvp, Hope you are doing good,
Please try the below measure:
Max Value per Week =
MAXX(
VALUES(DimDate[Week]),
CALCULATE( SUM(Fact[Value]) )
)
If this post helps to answer your question, please consider accepting it as a solution so others can find it more quickly when they face a similar challenge.
Proud to be a Microsoft Fabric community super user
Let's Connect on LinkedIn
Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.
Hello,
Thank you for support. However, it didnt work. The values shown as in the first image.
I think you can use
Max Value =
MAXX ( ALLSELECTED ( 'DimDate'[Week] ), [Value] )
Hello,
Thank you for support. However, it didnt work. The values shown as in the first image.
Is your DimDate table marked as a date table ?
Hello,
Yes marked as a date.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
73 | |
55 | |
42 | |
38 |
User | Count |
---|---|
100 | |
63 | |
56 | |
48 | |
45 |