Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DAX for Azure Cost Table

Hi Everyone,

 

I have a table visual which looks like this.

resourceGroupJanFebMarAprMayJunJul
RG1116578963736232115900
RG21389158472119521517137114
RG3269506165793719911491813
RG41377182736015686522261618
RG5171215811895032921128991
RG6129919598081489118882675
RG7146614021596586329931671
RG8550119318861138717381742
RG9370102215481400532103064
RG101961045540370116517611089

 

What I would like to do is -

Have a slicer for choosing a specific month (this is easily done).

Whenever a specific month is being chosen (from the slicer), the chosen month and the previous month relative to it have to be displayed, along with their costs.

And then display the cost difference between the two via a DAX or whatever you think is better/easier.

 

Example:

Chosen month in the slicer: July

Output:

resourceGroupJunJulDiff
RG11206208-998
RG287418981024
RG3347847500
RG412451084-161
RG572181897
RG6309838529
RG7711278-433
RG81893632-1261
RG91291137786
RG1017361894158

 

I'm still new to Power BI and any kind of help will be highly appreciated. 

 

Thanks!

2 Replies