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
FlimSpringfield
New Member

Variance by Period without Date

Hi, 

 

I am relatively new to Power BI and have a dataset similar to the below:

 

FlimSpringfield_0-1720611310661.png

 

I want to display the period on period changes in each status such that I need a visual which will display the following:

 

FlimSpringfield_1-1720611836135.png

 

So I know that I need a measure which takes the difference between the counts for the current period and prior period but I cannot work out how to implement this into the Calcuate DAX function. 

 

I could not find an answer on the forums which did not contain dates but hopefully this has a quick answer and I am struggling a bit.

 

Thanks

1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @FlimSpringfield please try measure Test as below. I got results as yours, not only for period 3. It could be my typo or your data (not shown everything)

Test =
VAR __max_period=MAX('Table'[Period])

RETURN
COUNT('Table'[ID])-
CALCULATE(
    COUNT('Table'[ID]),
    'Table'[Period]<__max_period
)
 
Output
some_bih_0-1720680936697.png

 





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

Proud to be a Super User!






View solution in original post

1 REPLY 1
some_bih
Super User
Super User

Hi @FlimSpringfield please try measure Test as below. I got results as yours, not only for period 3. It could be my typo or your data (not shown everything)

Test =
VAR __max_period=MAX('Table'[Period])

RETURN
COUNT('Table'[ID])-
CALCULATE(
    COUNT('Table'[ID]),
    'Table'[Period]<__max_period
)
 
Output
some_bih_0-1720680936697.png

 





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

Proud to be a Super User!






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.