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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Juramirez
Resolver I
Resolver I

Show measure regarding Hierarchy level

Hi all!

 

I have a Hierarchy like this:

      Month

         Day

What I want to do is when user drilldown from month to hierarchy Day, the value changes. 

This is my DataTable:

Fecha(d/m/y)|ValuesPerDay|ValuesPerMonth

01-01-2017|3|50

02-01-2017|4|50

03-01-2017|2|50

01-02-2017|1|40

 

I want to show in month the average of ValuesPerMonth  and for day i want to show each value that corresponds to each day from ValuesPerDay(the Date is in X axis of Line Chart).

How can I do this?

 

Regards,

Julián

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

you can use the measure like below which will display sum for individual days and Average for the month.

 

Measure2 = IF(HASONEVALUE('Calendar'[Date].[Day]),SUM(Sales[Revenue]),IF(HASONEVALUE('Calendar'[Month]),SUM(Sales[Revenue])/30,SUM(Sales[Revenue])))

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi,

you can use the measure like below which will display sum for individual days and Average for the month.

 

Measure2 = IF(HASONEVALUE('Calendar'[Date].[Day]),SUM(Sales[Revenue]),IF(HASONEVALUE('Calendar'[Month]),SUM(Sales[Revenue])/30,SUM(Sales[Revenue])))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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