Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello ,
i am a beginner in dax and i need help , with the following table
i would like to write a dax query to calculate the Result.
in DAX i have tried the following :
when i summarize , i am loosing SAM rows because of Blanks values , can i keep those blanks and have the right result.
Solved! Go to Solution.
Hello @Adelphe ,
Please use this formula to create a calculated column, to get the "0" included in your table.
Result =
VAR CurrentMonth = [Month]
VAR TotalLevelPerMonth = CALCULATE(SUM('Table'[Level]),ALLEXCEPT('Table', 'Table'[Month]))
RETURN
IF(TotalLevelPerMonth = 0, BLANK(), [Experience] * [Level] / TotalLevelPerMonth)
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Hi @Adelphe ,
Thanks for @dharmendars007 reply, that's really helpful!
@Adelphe Here is another method for your reference.
SUMMARIZECOLUMNS('Table'[Username],'Table'[Year],'Table'[Month],'Table'[Level],'Table'[Experience],"Result",IF(ISBLANK(MAX('Table'[Experience])),0,MAX('Table'[Level])*MAX('Table'[Experience])/CALCULATE(SUM('Table'[Level]),FILTER(ALL('Table'),'Table'[Month]=MAX('Table'[Month])))))
The result of my test.
Best regards,
Mengmeng Li
Hi @Adelphe ,
Thanks for @dharmendars007 reply, that's really helpful!
@Adelphe Here is another method for your reference.
SUMMARIZECOLUMNS('Table'[Username],'Table'[Year],'Table'[Month],'Table'[Level],'Table'[Experience],"Result",IF(ISBLANK(MAX('Table'[Experience])),0,MAX('Table'[Level])*MAX('Table'[Experience])/CALCULATE(SUM('Table'[Level]),FILTER(ALL('Table'),'Table'[Month]=MAX('Table'[Month])))))
The result of my test.
Best regards,
Mengmeng Li
Hello @Adelphe ,
Please use this formula to create a calculated column, to get the "0" included in your table.
Result =
VAR CurrentMonth = [Month]
VAR TotalLevelPerMonth = CALCULATE(SUM('Table'[Level]),ALLEXCEPT('Table', 'Table'[Month]))
RETURN
IF(TotalLevelPerMonth = 0, BLANK(), [Experience] * [Level] / TotalLevelPerMonth)
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |