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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
JemmaD
Resolver II
Resolver II

Have a measure only appear once instead of repeating on all rows

Hi there,

I have a fact table [Services] which holds difference services by account. I have a dim table [Fees] which holds the fee paid for services by account. There is only one fee per year, per account.
I have a measure which calculates the fee [Annual Fee Agreed], but when I add it to a matrix to show the fee per account along with the servies, naturally the Fee measure is repeating the same value against each service. I want it to only appear once. I have tried a HASONEVALUE argument but it's not working. 

Here is my table, can you help me with DAX syntax to have the Annual Fee perhaps displayed only in the total row?

JemmaD_0-1707299215266.png

 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

Measure = if(hasonefilter(Data[Service type]),blank(),[Annual fee agreed])

If this does not help, then share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
PijushRoy
Super User
Super User

Hi @JemmaD 
Please use 
ISINSCOPE https://learn.microsoft.com/en-us/dax/isinscope-function-dax

Could you please share the DAX

Let me know if that works for you


If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

@PijushRoy I wouldn't know where to start with that, I am hoping for help with syntax.

My Fee amount is 'Fees'[Amount Agreed]
The Schedule year is both in 'Fees'[Schedule_Year] and the date dim as 'Dates'[Schedule Year]

My [Anuual Fee Agreed] measure currently is:

Annual Fee Agreed = 
SUMX ( 
    SUMMARIZE ( 'Fees' , 'Fees'[ARCH_ACCOUNT] , 'Fees'[Amount Agreed] ),
    'Fees'[Amount Agreed]  )

But this doesn't summarise the Fee once per account.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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