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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vjnvinod
Impactful Individual
Impactful Individual

row Subtotal not correct

Hi All,

 

I am  using a simple measure as below

 

Tar WTD = MAX(QC_WTD[TargetDax WTD])
 
as you can see below my row total is also showing the max value, ideally this should be sum of 318, 1219 and so on, not sure why the row total is not coming up correctly
vjnvinod_0-1709545533883.png

 

 
2 ACCEPTED SOLUTIONS
Daniel29195
Super User
Super User

@vjnvinod 

 

modify the code to this : 

sumx

values(tbl_name[team_name_col_name]) , 

calculate

       maxQC_WTD[TargetDax WTD] ) 
)
)

 

let me know if this helps .

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

View solution in original post

danextian
Super User
Super User

Hi @vjnvinod

 

@Daniel29195 already  gave you the solution but here's why are not seeing the expected value in the total:

Each row in your visual returns the respect max value of QC_WTD[TargetDax WTD] based on the current value of Team Name but in your total, it returns the max value of QC_WTD[TargetDax WTD] for the whole table or at least based on slicer selections if there are.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @vjnvinod

 

@Daniel29195 already  gave you the solution but here's why are not seeing the expected value in the total:

Each row in your visual returns the respect max value of QC_WTD[TargetDax WTD] based on the current value of Team Name but in your total, it returns the max value of QC_WTD[TargetDax WTD] for the whole table or at least based on slicer selections if there are.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Daniel29195
Super User
Super User

@vjnvinod 

 

modify the code to this : 

sumx

values(tbl_name[team_name_col_name]) , 

calculate

       maxQC_WTD[TargetDax WTD] ) 
)
)

 

let me know if this helps .

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.