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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AmyMisa
Frequent Visitor

New Measure based on Measure

Hi, 

 

I have no idea if this is possible and I have been pottering about forums but haven't come across anything that works. 

 

I have this data, which if plotted into a table visual shows me this: 

 

AmyMisa_0-1650971902470.png

 

I want to create two KPI tiles or Cards: one that says the current week's delta and one that says the previous week's delta. I'm assuming I want to create a new measure like 'Current Delta' which filters my Delta measure. 

 

All of the columns in this table are measures besides the Week Number column which comes from my Date Table.

 

Any ideas?

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @AmyMisa ,

 

From what I am understanding, delta is a measure, right?

You could create a new measure to return the current week's delta:

Current Week =
SUMX (
    FILTER ( ALLSELECTED ( 'TABLE NAME' ), [Week Number] = WEEKNUM ( TODAY (), 2 ) ),
    [Delta]
)

Previous week's delta:

Previous Week =
SUMX (
    FILTER ( ALLSELECTED ( 'TABLE NAME' ), [Week Number] = WEEKNUM ( TODAY (), 2 ) )-1,
    [Delta]
)

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-stephen-msft, thanks for the response! 

 

Unfortunately this gave me a blank value😞

aymantm
Helper I
Helper I

Try this:
Current Delta =Calculate([Delta],[Week number]=max([Week number])-1)

Thank you @aymantm - unfortunately that didn't work, it gave me a value of '1'.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors