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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NavaneethaRaju
Helper IV
Helper IV

Need measure SUM for respective of tag ID with between data filters

Hi, 

I'm in middle of that one, i need to show the data and filter respective of slicer.

I wrote measure for sum of procedures respective of tag id, that worked on entire years of data.

 

whenever i select the date range, between that range it wont give sum value respective of tag id. 

 

I need measure to sum the procedures respective of tag id, as well as with between dates slicer.

Total Procedures(TagLocation) =
SUMX(VALUES('Tag Usage Fact'[Tag ID]),CALCULATE(SUM('Procedure Fact'[Procedures]),ALLEXCEPT('Tag Usage Fact','Tag Usage Fact'[Tag ID]),ALLEXCEPT('Sales Fact','Sales Fact'[Account ID])))

Figure 1: All year data for one tag id and its sum and percentage

NavaneethaRaju_0-1657004090785.png

 

When i applied the last 3 months relative date filter on slicer, it should show below like this

NavaneethaRaju_1-1657004397589.png

Figure 2:

NavaneethaRaju_2-1657004449819.png

 

Using that measures, this is not working respective of date filters. its display total for all time.
Actually its showing like this, I actually i want like Figure 2.

NavaneethaRaju_3-1657004729829.png

 

 

I enclosed the sample data and measures will indicate which are the fields and I'm using from which table

Tag IDSystem NameSet IDSet NameOrder DateAccount Tag Owner No of ProceduresTotal Procedures% of Usage
4AZ1001AZ SET28-10-2020 00:00Hospital 1Alex1186%
4AZ1001AZ SET01-12-2020 00:00Hospital 1Alex1186%
4AZ1001AZ SET15-12-2020 00:00Hospital 1Alex1186%
4AZ1001AZ SET31-12-2020 00:00Hospital 1Alex1186%
4AZ1001AZ SET21-01-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET02-02-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET06-04-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET20-04-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET11-05-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET27-05-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET04-11-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET30-11-2021 00:00Hospital 1Alex1186%
4AZ1001AZ SET15-03-2022 00:00Hospital2Alex41822%
4AZ1001AZ SET12-04-2022 00:00Hospital 3Alex1186%
4AZ1001AZ SET14-04-2022 00:00Hospital 3Alex1186%
1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @NavaneethaRaju ,

 

Would you please provide some sample data (without sensitive data) and relationships about these three tables (Tag Usage Fact, Procedure Fact, Sales Fact)? A PBIX file would be nice. This is helpful to solve this problem. Thanks in advance!

 

How to provide sample data in the Power BI Forum

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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