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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
NewbieJono
Post Partisan
Post Partisan

Splitting a total

I have a total Table each day, but i wish to split the total by a certain percentage each date. on different days the percentage changes.

 

i am using this code and it works for 1 day, but i need it to work over time, as sample rates change

 

 

Split 1 = 

VAR Total = [Total]
 
VAR Samplerate = 
    CALCULATE(
     SUM('DIM - Sampling'[%Value]),
     'DIM - Sampling'[Stream] = "Split 1 %"
    )

Return

divide(total,100) * AquireSampleRAte

 

 

 

here is an example of the data

 

Capture.PNG

1 REPLY 1
Anonymous
Not applicable

Hi  @NewbieJono ,

 

No problem found according to your dax formula, you say your formula can work for a day, but in dax there is no information associated with the date found.

Are you using a slicer or other calculation table with date format.

[%value] and [Stream] were not found in the sample data, can you provide more details.

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.