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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
WMart_AMS
Frequent Visitor

DAX measure to show current and previous score based on selected reporting period

Hi Everybody,

 

Hopefully somebody can help me out. I want to create a DAX measure with which i can present overall scores on project performance. In summery i'm looking for these results, based on the data set you'll find below

 

  • Overall_score of current period, based on selected period
  • Overal_score of previous period, based on selected period
  • The value should be dynamic based on the selected report period.
  • Example: selected period is February, so I want to se the overall_score of February and January. If I select January as period, I want to see the overall_score of January and December.

I've tried to work with things like MAX and Rank Columns, but I does not give the the functionalities i'm looking for. I feel like the solution should be simple, but I can't find it. 

 

Your help is greatly appriciated!

 

The end result should be a table similar like this one:

WMart_AMS_1-1741954749406.png

 

 

 

IndexRANK COLUMNProject_codeOverall_ScoreCurrent StatusResults previous periodExpected developments
1573041001712,25texttexttext
2473041001712,25texttexttext
3373041001712,5texttexttext
4273041001712,5texttexttext
5173041001712,5texttexttext
1573042100561,75texttexttext
2473042100561,75texttexttext
3373042100562,25texttexttext
4273042100562,5texttexttext
5173042100562,25texttexttext
1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@WMart_AMS  I hope the below Dax helps you.

Write Dax:

Overal_score_of_previous_period =
	CALCULATE(
				SUM(ScoreTable[Score]),
				PREVIOUSMONTH('DateTable'[Date])
	         )


@WMart_AMS  if this dax helps you please mark as solutions.
Thank You!

View solution in original post

5 REPLIES 5
v-pagayam-msft
Community Support
Community Support

Hi @WMart_AMS ,
We haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
If you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!

v-pagayam-msft
Community Support
Community Support

Hi @WMart_AMS ,
I just wanted to kindly follow up to see if you had a chance to review the previous response provided by community members. I hope it was helpful. If yes, please Accept the answer so that it will be helpful to others to find it quickly.
Thank you.

v-pagayam-msft
Community Support
Community Support

Hi @WMart_AMS ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members in the community who have similar problems as yours to solve it faster.

Thank you.

Regards,
Pallavi.

Mahesh0016
Super User
Super User

@WMart_AMS  I hope the below Dax helps you.

Write Dax:

Overal_score_of_previous_period =
	CALCULATE(
				SUM(ScoreTable[Score]),
				PREVIOUSMONTH('DateTable'[Date])
	         )


@WMart_AMS  if this dax helps you please mark as solutions.
Thank You!

lbendlin
Super User
Super User

Please provide sample data that fully covers your issue - including the periods.
Please show the expected outcome based on the sample data you provided.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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