The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
i have a simple pivot/matrix display:
At the end of the table i only want to display the sum of the vaules of the last date within a month.
Getting this data is no problem with views on the sql server or measures.
But the question is if there is a way to manipulte what is shown in the sum row (Gesamt)
Or can i add an individual row at the end of the table?
Any idea is welcome
Solved! Go to Solution.
Hi @SLMR ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
summe von tasks Measure =
var _a=SUM('Table'[summe von tasks])
var _b=CALCULATE(MAX('Table'[Date]),FILTER(ALLSELECTED('Table'),'Table'[Markt]=MAX('Table'[Markt])))
var _c=CALCULATE(SUM('Table'[summe von tasks]),FILTER(ALLSELECTED('Table'),'Table'[Markt]=MAX('Table'[Markt]) && 'Table'[Date]=_b))
RETURN IF(ISFILTERED('Table'[Markt]),_c,IF(ISFILTERED('Table'[Date]),_a))
Measure = SUMX(VALUES('Table'[Markt]),[summe von tasks Measure])
Measure 2 = IF( ISFILTERED('Table'[Markt])=FALSE(),[Measure],SUM('Table'[summe von tasks]))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @SLMR ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
summe von tasks Measure =
var _a=SUM('Table'[summe von tasks])
var _b=CALCULATE(MAX('Table'[Date]),FILTER(ALLSELECTED('Table'),'Table'[Markt]=MAX('Table'[Markt])))
var _c=CALCULATE(SUM('Table'[summe von tasks]),FILTER(ALLSELECTED('Table'),'Table'[Markt]=MAX('Table'[Markt]) && 'Table'[Date]=_b))
RETURN IF(ISFILTERED('Table'[Markt]),_c,IF(ISFILTERED('Table'[Date]),_a))
Measure = SUMX(VALUES('Table'[Markt]),[summe von tasks Measure])
Measure 2 = IF( ISFILTERED('Table'[Markt])=FALSE(),[Measure],SUM('Table'[summe von tasks]))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot!!!
That works like charme.
Have a nice day,
Mikko
Please share pbix file
I solved the problem using a paginated report and include it into the "normal" report.
Anyway i would like to know if there is any possibility to du the same with a matrix/pivot element
I tryed to drop the .pbix file here, but pbix fiels are not allowed?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
109 | |
77 | |
76 | |
43 | |
37 |
User | Count |
---|---|
157 | |
114 | |
64 | |
60 | |
55 |